diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-05-30 14:00:14 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-05-30 14:00:14 +0200 |
commit | 1201426dd43f5b4e12dfe520e2a9c5027d33dc11 (patch) | |
tree | 1d89fc672a53494c99e63f320ffda876c4452160 /stream.c | |
parent | 75422766d51cf96ea081977c9d0b26b2ba1a8ade (diff) | |
download | strace-1201426dd43f5b4e12dfe520e2a9c5027d33dc11.tar.gz strace-1201426dd43f5b4e12dfe520e2a9c5027d33dc11.tar.bz2 strace-1201426dd43f5b4e12dfe520e2a9c5027d33dc11.tar.xz |
"Modernize" all old-style function parameter declarations
* bjm.c: Convert all remaining old-style C function definitions
to a "modern" form. This does not change any actual code.
* io.c: Likewise
* ioctl.c: Likewise
* net.c: Likewise
* proc.c: Likewise
* process.c: Likewise
* signal.c: Likewise
* sock.c: Likewise
* strace.c: Likewise
* stream.c: Likewise
* syscall.c: Likewise
* system.c: Likewise
* time.c: Likewise
* util.c: Likewise
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 45 |
1 files changed, 11 insertions, 34 deletions
@@ -77,10 +77,7 @@ static const struct xlat msgflags[] = { static void -printstrbuf(tcp, sbp, getting) -struct tcb *tcp; -struct strbuf *sbp; -int getting; +printstrbuf(struct tcb *tcp, struct strbuf *sbp, int getting) { if (sbp->maxlen == -1 && getting) tprintf("{maxlen=-1}"); @@ -95,10 +92,7 @@ int getting; } static void -printstrbufarg(tcp, arg, getting) -struct tcb *tcp; -int arg; -int getting; +printstrbufarg(struct tcb *tcp, int arg, int getting) { struct strbuf buf; @@ -112,8 +106,7 @@ int getting; } int -sys_putmsg(tcp) -struct tcb *tcp; +sys_putmsg(struct tcb *tcp) { int i; @@ -131,8 +124,7 @@ struct tcb *tcp; #if defined(SPARC) || defined(SPARC64) || defined(SUNOS4) || defined(SVR4) int -sys_getmsg(tcp) -struct tcb *tcp; +sys_getmsg(struct tcb *tcp) { int i, flags; @@ -195,8 +187,7 @@ static const struct xlat pmsgflags[] = { #ifdef SYS_putpmsg int -sys_putpmsg(tcp) -struct tcb *tcp; +sys_putpmsg(struct tcb *tcp) { int i; @@ -217,8 +208,7 @@ struct tcb *tcp; #ifdef SYS_getpmsg int -sys_getpmsg(tcp) -struct tcb *tcp; +sys_getpmsg(struct tcb *tcp) { int i, flags; @@ -467,8 +457,7 @@ sys_ppoll(struct tcb *tcp) #else /* !HAVE_SYS_POLL_H */ int -sys_poll(tcp) -struct tcb *tcp; +sys_poll(struct tcb *tcp) { return 0; } @@ -608,10 +597,7 @@ static const struct xlat xti_generic [] = { void -print_xti_optmgmt (tcp, addr, len) -struct tcb *tcp; -long addr; -int len; +print_xti_optmgmt(struct tcb *tcp, long addr, int len) { int c = 0; struct t_opthdr hdr; @@ -662,10 +648,7 @@ int len; static void -print_optmgmt (tcp, addr, len) -struct tcb *tcp; -long addr; -int len; +print_optmgmt(struct tcb *tcp, long addr, int len) { /* We don't know how to tell if TLI (socket) or XTI optmgmt is being used yet, assume TLI. */ @@ -753,11 +736,7 @@ static const struct xlat tli_errors [] = { static int -print_transport_message (tcp, expect, addr, len) -struct tcb *tcp; -int expect; -long addr; -int len; +print_transport_message(struct tcb *tcp, int expect, long addr, int len) { union T_primitives m; int c = 0; @@ -1180,9 +1159,7 @@ static int internal_stream_ioctl(struct tcb *tcp, int arg) } int -stream_ioctl(tcp, code, arg) -struct tcb *tcp; -int code, arg; +stream_ioctl(struct tcb *tcp, int code, int arg) { #ifdef I_LIST int i; |