From 755185bbadf65894df2ae01612a9b2079d905ab0 Mon Sep 17 00:00:00 2001 From: octo Date: Sun, 14 May 2006 08:01:55 +0000 Subject: [PATCH] Make iterator_get_info return the sequence as an unsigned int, rather than an uint16_t. --- src/liboping.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/liboping.c b/src/liboping.c index b926090..de1ff02 100644 --- a/src/liboping.c +++ b/src/liboping.c @@ -35,10 +35,6 @@ # include #endif -#ifndef __USE_BSD -# define __USE_BSD -#endif - #if HAVE_FCNTL_H # include #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; - *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; -- 2.30.2