]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include/c: remove a duplicate include
authorBenno Schulenberg <bensberg@justemail.net>
Mon, 28 Apr 2014 15:52:42 +0000 (17:52 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 6 May 2014 09:09:21 +0000 (11:09 +0200)
Also tweak some comments.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
include/c.h

index 6b8793a66fb0ff28a776abcc1376cc10d3ca80ea..7321ed0141e3ae12c4d01e03677d286547b90fa5 100644 (file)
 # include <err.h>
 #endif
 
-#ifndef HAVE_USLEEP
-# include <time.h>
-#endif
-
 /*
- * Compiler specific stuff
+ * Compiler-specific stuff
  */
 #ifndef __GNUC_PREREQ
 # if defined __GNUC__ && defined __GNUC_MINOR__
 # endif
 #endif
 
-/* Force a compilation error if condition is true, but also produce a
+/*
+ * Force a compilation error if condition is true, but also produce a
  * result (of value 0 and type size_t), so the expression can be used
- * e.g. in a structure initializer (or where-ever else comma expressions
+ * e.g. in a structure initializer (or wherever else comma expressions
  * aren't permitted).
  */
 #define UL_BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
@@ -254,9 +251,9 @@ static inline size_t get_hostname_max(void)
 }
 
 /*
- * The usleep function is marked obsolete in POSIX.1-2001 and removed in
- * POSIX.1-2008. This is replaced with nanosleep() that provides more
- * advantages (like no interaction with signals and other timer functions.
+ * The usleep function was marked obsolete in POSIX.1-2001 and was removed
+ * in POSIX.1-2008.  It was replaced with nanosleep() that provides more
+ * advantages (like no interaction with signals and other timer functions).
  */
 #include <time.h>