projects
/
liboping.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d2e1338
)
Make iterator_get_info return the sequence as an unsigned int, rather than an uint16_t.
author
octo
<octo>
Sun, 14 May 2006 08:01:55 +0000
(08:01 +0000)
committer
octo
<octo>
Sun, 14 May 2006 08:01:55 +0000
(08:01 +0000)
src/liboping.c
patch
|
blob
|
history
diff --git
a/src/liboping.c
b/src/liboping.c
index
b926090
..
de1ff02
100644
(file)
--- a/
src/liboping.c
+++ b/
src/liboping.c
@@
-35,10
+35,6
@@
# include <unistd.h>
#endif
# include <unistd.h>
#endif
-#ifndef __USE_BSD
-# define __USE_BSD
-#endif
-
#if HAVE_FCNTL_H
# include <fcntl.h>
#endif
#if HAVE_FCNTL_H
# include <fcntl.h>
#endif
@@
-1142,10
+1138,10
@@
int ping_iterator_get_info (pingobj_iter_t *iter, int info,
/* FIXME Return the sequence as an unsigned int */
case PING_INFO_SEQUENCE:
ret = ENOMEM;
/* FIXME Return the sequence as an unsigned int */
case PING_INFO_SEQUENCE:
ret = ENOMEM;
- *buffer_len = sizeof (u
int16_
t);
- if (orig_buffer_len < sizeof (u
int16_
t))
+ *buffer_len = sizeof (u
nsigned in
t);
+ if (orig_buffer_len < sizeof (u
nsigned in
t))
break;
break;
- *((u
int16_t *) buffer) = (uint16_
t) iter->sequence;
+ *((u
nsigned int *) buffer) = (unsigned in
t) iter->sequence;
ret = 0;
break;
ret = 0;
break;