X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilctime.h;h=e01e1ae701f92660debb212b10dae7a6195f7b86;hb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;hp=64eb37198ffb075754fabaf2fdaf938b71999f3b;hpb=0850a1d4bcbf2b311229d9fc807d9717a577e4df;p=silc.git diff --git a/lib/silcutil/silctime.h b/lib/silcutil/silctime.h index 64eb3719..e01e1ae7 100644 --- a/lib/silcutil/silctime.h +++ b/lib/silcutil/silctime.h @@ -44,7 +44,7 @@ * SOURCE * ***/ -typedef struct { +typedef struct SilcTimeObject { unsigned int year : 15; /* Year, 0 - 32768 */ unsigned int month : 4; /* Month, 1 - 12 */ unsigned int day : 5; /* Day, 1 - 31 */ @@ -251,7 +251,7 @@ SilcBool silc_time_generalized_string(SilcTime time_val, char *ret_string, * * DESCRIPTION * - * Compares `t1' and `t2' time structures and returns less than zero, + * Compares `t1' and `t2' time structures and returns less than zero, * zero or more than zero when `t1' is smaller, equal or bigger than * `t2', respectively. * @@ -276,7 +276,7 @@ int silc_gettimeofday(struct timeval *p); * * SYNOPSIS * - * void silc_usleep(long microseconds); + * void silc_usleep(unsigned long microseconds); * * DESCRIPTION * @@ -290,7 +290,7 @@ int silc_gettimeofday(struct timeval *p); * ***/ static inline -void silc_usleep(long microseconds) +void silc_usleep(unsigned long microseconds) { #ifdef SILC_UNIX #ifdef HAVE_NANOSLEEP