diff options
author | Juan Cespedes <cespedes@debian.org> | 2002-03-01 19:54:23 +0100 |
---|---|---|
committer | Juan Cespedes <cespedes@debian.org> | 2002-03-01 19:54:23 +0100 |
commit | 8cc1b9d456c8f41e3a8cc0d3ec0d77eb779cb7bb (patch) | |
tree | ad52599fd70a115bbe3837fc0aca4fb2ba4ba3e2 /display_args.c | |
parent | 5916fda0d07da90cac8a78cbfa73374d81b150be (diff) | |
download | ltrace-8cc1b9d456c8f41e3a8cc0d3ec0d77eb779cb7bb.tar.gz |
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...)
Diffstat (limited to 'display_args.c')
-rw-r--r-- | display_args.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/display_args.c b/display_args.c index 1ea10fd..de1a1c4 100644 --- a/display_args.c +++ b/display_args.c @@ -15,8 +15,8 @@ static int display_stringN(int arg2, enum tof type, struct process * proc, int a static int display_unknown(enum tof type, struct process * proc, int arg_num); static int display_format(enum tof type, struct process * proc, int arg_num); -int display_arg(enum tof type, struct process * proc, int arg_num, enum arg_type at) -{ +int +display_arg(enum tof type, struct process * proc, int arg_num, enum arg_type at) { int tmp; long arg; @@ -60,8 +60,8 @@ int display_arg(enum tof type, struct process * proc, int arg_num, enum arg_type return fprintf(output, "?"); } -static int display_char(int what) -{ +static int +display_char(int what) { switch(what) { case -1: return fprintf(output, "EOF"); case '\r': return fprintf(output, "\\r"); @@ -82,8 +82,8 @@ static int string_maxlength=INT_MAX; #define MIN(a,b) (((a)<(b)) ? (a) : (b)) -static int display_string(enum tof type, struct process * proc, int arg_num) -{ +static int +display_string(enum tof type, struct process * proc, int arg_num) { void * addr; char * str1; int i; @@ -115,8 +115,8 @@ static int display_string(enum tof type, struct process * proc, int arg_num) return len; } -static int display_stringN(int arg2, enum tof type, struct process * proc, int arg_num) -{ +static int +display_stringN(int arg2, enum tof type, struct process * proc, int arg_num) { int a; string_maxlength=gimme_arg(type, proc, arg2-1); @@ -125,8 +125,8 @@ static int display_stringN(int arg2, enum tof type, struct process * proc, int a return a; } -static int display_unknown(enum tof type, struct process * proc, int arg_num) -{ +static int +display_unknown(enum tof type, struct process * proc, int arg_num) { long tmp; tmp = gimme_arg(type, proc, arg_num); @@ -138,8 +138,8 @@ static int display_unknown(enum tof type, struct process * proc, int arg_num) } } -static int display_format(enum tof type, struct process * proc, int arg_num) -{ +static int +display_format(enum tof type, struct process * proc, int arg_num) { void * addr; char * str1; int i; |