diff options
author | Jim Meyering <meyering@redhat.com> | 2011-02-20 23:02:43 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-02-22 14:51:31 +0100 |
commit | 86fd2114ac3940e03a02e99658c8df88aed8a235 (patch) | |
tree | 988f6343a71b4ef30052c959109289c9d6ae8a75 /lib/openat.c | |
parent | f1eb357fab17482b2d19f12fc731673acead4922 (diff) | |
download | gnulib-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/openat.c')
-rw-r--r-- | lib/openat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/openat.c b/lib/openat.c index 55e12e2111..939e3c70d7 100644 --- a/lib/openat.c +++ b/lib/openat.c @@ -53,7 +53,7 @@ rpl_openat (int dfd, char const *filename, int flags, ...) va_end (arg); } -#if OPEN_TRAILING_SLASH_BUG +# if OPEN_TRAILING_SLASH_BUG /* If the filename ends in a slash and one of O_CREAT, O_WRONLY, O_RDWR is specified, then fail. Rationale: POSIX <http://www.opengroup.org/susv3/basedefs/xbd_chap04.html> @@ -84,11 +84,11 @@ rpl_openat (int dfd, char const *filename, int flags, ...) return -1; } } -#endif +# endif fd = openat (dfd, filename, flags, mode); -#if OPEN_TRAILING_SLASH_BUG +# if OPEN_TRAILING_SLASH_BUG /* If the filename ends in a slash and fd does not refer to a directory, then fail. Rationale: POSIX <http://www.opengroup.org/susv3/basedefs/xbd_chap04.html> @@ -117,7 +117,7 @@ rpl_openat (int dfd, char const *filename, int flags, ...) } } } -#endif +# endif return fd; } |