Version: 0.3.18
* Simplified arch-dependent stuff
* Updated list of syscalls and signals to Linux 2.4.18
* Unified coding-style of all function declarations
* Do not indent lines indicating signals, exit codes, etc
* Updated description
* fix off-by-one problem in checking syscall number (Tim Waugh
<twaugh@redhat.com> fixed this problem in RedHat two years ago;
thank you for NOT noticing me...)
diff --git a/proc.c b/proc.c
index 48a942f..3c0a936 100644
--- a/proc.c
+++ b/proc.c
@@ -12,8 +12,8 @@
#include "options.h"
#include "elf.h"
-struct process * open_program(char * filename)
-{
+struct process *
+open_program(char * filename) {
struct process * proc;
struct library_symbol * sym;
proc = malloc(sizeof(struct process));
@@ -62,19 +62,13 @@
return proc;
}
-void open_pid(pid_t pid, int verbose)
-{
+void
+open_pid(pid_t pid, int verbose) {
struct process * proc;
char * filename;
if (trace_pid(pid)<0) {
-#if 0
- if (verbose) {
-#endif
- fprintf(stderr, "Cannot attach to pid %u: %s\n", pid, strerror(errno));
-#if 0
- }
-#endif
+ fprintf(stderr, "Cannot attach to pid %u: %s\n", pid, strerror(errno));
return;
}