diff options
author | Benno Schulenberg | 2014-04-28 17:52:42 +0200 |
---|---|---|
committer | Karel Zak | 2014-05-06 11:09:21 +0200 |
commit | 68411ba260c55d527b8e702daeeff02c2f2a27d7 (patch) | |
tree | 18569ed061295d4df602539dbf9177dc43f2c57f /include/c.h | |
parent | lsblk: add -O option to show all available columns (diff) | |
download | kernel-qcow2-util-linux-68411ba260c55d527b8e702daeeff02c2f2a27d7.tar.gz kernel-qcow2-util-linux-68411ba260c55d527b8e702daeeff02c2f2a27d7.tar.xz kernel-qcow2-util-linux-68411ba260c55d527b8e702daeeff02c2f2a27d7.zip |
include/c: remove a duplicate include
Also tweak some comments.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'include/c.h')
-rw-r--r-- | include/c.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/include/c.h b/include/c.h index 6b8793a66..7321ed014 100644 --- a/include/c.h +++ b/include/c.h @@ -19,12 +19,8 @@ # 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__ @@ -70,9 +66,10 @@ # 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> |