diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2004-02-17 18:29:02 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2004-02-17 18:29:02 +0000 | 
| commit | b2d7fd8c8e1c7948169726639675d462bd83e50e (patch) | |
| tree | 30dec86bd953ffa03cef2a1298c94474990612b4 /test/rctest.c | |
| parent | 1118351ad3803d4508a146762775a9ee1e05c09c (diff) | |
Fix sequence increment
Diffstat (limited to 'test/rctest.c')
| -rw-r--r-- | test/rctest.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/test/rctest.c b/test/rctest.c index 47039555..3d50ba95 100644 --- a/test/rctest.c +++ b/test/rctest.c @@ -279,8 +279,9 @@ void send_mode(int s)  	seq = 0;  	while ((num_frames == -1) || (num_frames-- > 0)) { -		*(uint32_t *) buf = htobl(seq++); +		*(uint32_t *) buf = htobl(seq);  		*(uint16_t *)(buf+4) = htobs(data_size); +		seq++;  		if (send(s, buf, data_size, 0) <= 0) {  			syslog(LOG_ERR, "Send failed. %s(%d)", strerror(errno), errno);  | 
