summaryrefslogtreecommitdiff
path: root/lib/userspec.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-02-20 23:02:43 +0100
committerJim Meyering <meyering@redhat.com>2011-02-22 14:51:31 +0100
commit86fd2114ac3940e03a02e99658c8df88aed8a235 (patch)
tree988f6343a71b4ef30052c959109289c9d6ae8a75 /lib/userspec.c
parentf1eb357fab17482b2d19f12fc731673acead4922 (diff)
downloadgnulib-86fd2114ac3940e03a02e99658c8df88aed8a235.tar.gz
maint: adjust cpp indentation to reflect nesting depth
I.e., in a block of code that begins with an unnested "#if", put one space between the "#" in column 1 and following token. For example, -#include <sys/vfs.h> +# include <sys/vfs.h> Do this only in .c files that are part of a module I maintain. * lib/linkat.c: Filter through cppi. * lib/nanosleep.c: Likewise. * lib/openat.c: Likewise. * lib/openat-die.c: Likewise. * lib/dup3.c: Likewise. * lib/fchownat.c: Likewise. * lib/flock.c: Likewise. * lib/fsync.c: Likewise. * lib/fts.c: Likewise. * lib/getpass.c: Likewise. * lib/gettimeofday.c: Likewise. * lib/userspec.c: Likewise. * Makefile (sc_cpp_indent_check): New rule, to check this.
Diffstat (limited to 'lib/userspec.c')
-rw-r--r--lib/userspec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/userspec.c b/lib/userspec.c
index 9d910de9a2..bf3b792a7d 100644
--- a/lib/userspec.c
+++ b/lib/userspec.c
@@ -80,7 +80,7 @@
POSIX says that only '0' through '9' are digits. Prefer ISDIGIT to
isdigit unless it's important to use the locale's definition
of `digit' even when the host does not conform to POSIX. */
-#define ISDIGIT(c) ((unsigned int) (c) - '0' <= 9)
+# define ISDIGIT(c) ((unsigned int) (c) - '0' <= 9)
/* Return true if STR represents an unsigned decimal integer. */