]> git.meshlink.io Git - catta/blobdiff - avahi-common/timeval.h
Remove an invalid optimization in avahi_simple_poll_run(). (Closes #132)
[catta] / avahi-common / timeval.h
index 5bbe1a705e5535fd62f3c5f488f21fa0db628a94..a441c0891a6dae4ccd51b0b5f12f1b40af22ae1b 100644 (file)
   USA.
 ***/
 
+/** \file timeval.h Functions to facilitate timeval handling */
+
 #include <inttypes.h>
 #include <sys/time.h>
 
 #include <avahi-common/cdecl.h>
 
-#ifndef DOXYGEN_SHOULD_SKIP_THIS
 AVAHI_C_DECL_BEGIN
-#endif
 
 /** A numeric data type for storing microsecond values. (signed 64bit integer) */
 typedef int64_t AvahiUsec;
 
-/** Compare two timeval structures and return a ngeative value when a < b, 0 when a == b and a positive value otherwise */
+/** Compare two timeval structures and return a negative value when a < b, 0 when a == b and a positive value otherwise */
 int avahi_timeval_compare(const struct timeval *a, const struct timeval *b);
 
-/** Calculate the difference between to timeval structures as microsecond value */
+/** Calculate the difference between two timeval structures as microsecond value */
 AvahiUsec avahi_timeval_diff(const struct timeval *a, const struct timeval *b);
 
 /** Add a number of microseconds to the specified timeval structure and return it. *a is modified. */
@@ -51,8 +51,6 @@ AvahiUsec avahi_age(const struct timeval *a);
  * the jitter */
 struct timeval *avahi_elapse_time(struct timeval *tv, unsigned ms, unsigned j);
 
-#ifndef DOXYGEN_SHOULD_SKIP_THIS
 AVAHI_C_DECL_END
-#endif
 
 #endif