diff options
author | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
commit | cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch) | |
tree | e0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/ip/snoopy/rtcp.c | |
parent | 226d80b8213821af0cbf092d1507c52b504fd368 (diff) | |
download | plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2 plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip |
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/ip/snoopy/rtcp.c')
-rwxr-xr-x | src/cmd/ip/snoopy/rtcp.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/cmd/ip/snoopy/rtcp.c b/src/cmd/ip/snoopy/rtcp.c index 939f78db..29745d65 100755 --- a/src/cmd/ip/snoopy/rtcp.c +++ b/src/cmd/ip/snoopy/rtcp.c @@ -6,29 +6,29 @@ typedef struct Hdr Hdr; struct Hdr { - uchar hdr; // RTCP header - uchar pt; // Packet type - uchar len[2]; // Report length - uchar ssrc[4]; // Synchronization source identifier - uchar ntp[8]; // NTP time stamp - uchar rtp[4]; // RTP time stamp - uchar pktc[4]; // Sender's packet count - uchar octc[4]; // Sender's octect count + uchar hdr; /* RTCP header */ + uchar pt; /* Packet type */ + uchar len[2]; /* Report length */ + uchar ssrc[4]; /* Synchronization source identifier */ + uchar ntp[8]; /* NTP time stamp */ + uchar rtp[4]; /* RTP time stamp */ + uchar pktc[4]; /* Sender's packet count */ + uchar octc[4]; /* Sender's octect count */ }; typedef struct Report Report; struct Report { - uchar ssrc[4]; // SSRC identifier - uchar lost[4]; // Fraction + cumu lost - uchar seqhi[4]; // Highest seq number received - uchar jitter[4]; // Interarrival jitter - uchar lsr[4]; // Last SR - uchar dlsr[4]; // Delay since last SR + uchar ssrc[4]; /* SSRC identifier */ + uchar lost[4]; /* Fraction + cumu lost */ + uchar seqhi[4]; /* Highest seq number received */ + uchar jitter[4]; /* Interarrival jitter */ + uchar lsr[4]; /* Last SR */ + uchar dlsr[4]; /* Delay since last SR */ }; enum{ - RTCPLEN = 28, // Minimum size of an RTCP header - REPORTLEN = 24, + RTCPLEN = 28, /* Minimum size of an RTCP header */ + REPORTLEN = 24 }; static int @@ -79,5 +79,5 @@ Proto rtcp = { nil, nil, nil, - defaultframer, + defaultframer }; |