summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d2e1338)
raw | patch | inline | side by side (parent: d2e1338)
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 b92609036bd73df038a80db6d472cceec44a3ffb..de1ff02b56ffe6d15f94234334e4aaf6b1f254eb 100644 (file)
--- a/src/liboping.c
+++ b/src/liboping.c
# include <unistd.h>
#endif
-#ifndef __USE_BSD
-# define __USE_BSD
-#endif
-
#if HAVE_FCNTL_H
# include <fcntl.h>
#endif
/* FIXME Return the sequence as an unsigned int */
case PING_INFO_SEQUENCE:
ret = ENOMEM;
- *buffer_len = sizeof (uint16_t);
- if (orig_buffer_len < sizeof (uint16_t))
+ *buffer_len = sizeof (unsigned int);
+ if (orig_buffer_len < sizeof (unsigned int))
break;
- *((uint16_t *) buffer) = (uint16_t) iter->sequence;
+ *((unsigned int *) buffer) = (unsigned int) iter->sequence;
ret = 0;
break;