summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--defs.h4
-rw-r--r--file.c4
-rw-r--r--io.c6
4 files changed, 9 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 894ad41..d2457be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
2002-03-31 Wichert Akkerman <wichert@deephackmode.org>
* debian/*: added
+ * linux/syscallent.h: fix typo and add the reserved stream syscalls
+ * defs.h, file.c, io.c: fix signed/unsigned issues
2001-12-17 Wichert Akkerman <wakkerma@debian.org>
diff --git a/defs.h b/defs.h
index 236668f..3a2142d 100644
--- a/defs.h
+++ b/defs.h
@@ -534,10 +534,10 @@ do { \
#if HAVE_LITTLE_ENDIAN_LONG_LONG
#define LONG_LONG(_l,_h) \
- ((long long)((unsigned long long)(_l) | ((unsigned long long)(_h)<<32)))
+ ((long long)((unsigned long long)(unsigned)(_l) | ((unsigned long long)(_h)<<32)))
#else
#define LONG_LONG(_l,_h) \
- ((long long)((unsigned long long)(_h) | ((unsigned long long)(_l)<<32)))
+ ((long long)((unsigned long long)(unsigned)(_h) | ((unsigned long long)(_l)<<32)))
#endif
#endif
diff --git a/file.c b/file.c
index f72ad48..bfb12ca 100644
--- a/file.c
+++ b/file.c
@@ -404,11 +404,11 @@ struct tcb *tcp;
if (tcp->u_arg[4] == SEEK_SET)
tprintf("%ld, %llu, ", tcp->u_arg[0],
(((long long int) tcp->u_arg[1]) << 32
- | (unsigned long long) tcp->u_arg[2]));
+ | (unsigned long long) (unsigned) tcp->u_arg[2]));
else
tprintf("%ld, %lld, ", tcp->u_arg[0],
(((long long int) tcp->u_arg[1]) << 32
- | (unsigned long long) tcp->u_arg[2]));
+ | (unsigned long long) (unsigned) tcp->u_arg[2]));
}
else {
long long int off;
diff --git a/io.c b/io.c
index 823f9c3..3f1022c 100644
--- a/io.c
+++ b/io.c
@@ -162,7 +162,7 @@ struct tcb *tcp;
#else
tprintf(", %lu, %llu", tcp->u_arg[2],
(((unsigned long long) tcp->u_arg[4]) << 32
- | tcp->u_arg[3]));
+ | (unsigned) tcp->u_arg[3]));
#endif
}
return 0;
@@ -181,7 +181,7 @@ struct tcb *tcp;
#else
tprintf(", %lu, %llu", tcp->u_arg[2],
(((unsigned long long) tcp->u_arg[4]) << 32
- | tcp->u_arg[3]));
+ | (unsigned) tcp->u_arg[3]));
#endif
}
return 0;
@@ -199,7 +199,7 @@ struct tcb *tcp;
if (entering(tcp)) {
tprintf("%ld, %ld, %llu, %lu", tcp->u_arg[0], tcp->u_arg[1],
(((unsigned long long) tcp->u_arg[3]) << 32 |
- tcp->u_arg[2]), tcp->u_arg[4]);
+ (unsigned) tcp->u_arg[2]), tcp->u_arg[4]);
} else {
off_t offset;