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/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_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 @@
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 @@
#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 @@
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 @@
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_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;