]> Savannah Git Hosting - gnulib.git/commitdiff
maint: various whitespace cleanups in tempname
authorPádraig Brady <P@draigBrady.com>
Wed, 11 Feb 2015 02:46:28 +0000 (02:46 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 11 Feb 2015 02:48:57 +0000 (02:48 +0000)
Recent changes to the tempname module, introduced
whitespace inconsistencies that are triggering
issues in coreutils diffs generated against the new files.

* lib/tempname.c: Normalize spacing and line length.
* lib/tempname.h: Likewise.
* modules/tempname: Likewise.

ChangeLog
lib/tempname.c
lib/tempname.h
modules/tempname

index 20139087fc1d3d9d562105e87ea4bc8f391426b6..f4de4fec8939270f87923fc1d108d4b02a026269 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-02-11  Pádraig Brady  <P@draigBrady.com>
+
+       maint: various whitespace cleanups in tempname
+       * lib/tempname.c: Normalize spacing and line length.
+       * lib/tempname.h: Likewise.
+       * modules/tempname: Likewise.
+
 2015-02-11  Pádraig Brady  <P@draigBrady.com>
 
        tests: provide returns_() to simplify exit status checking
index fa8b01899f6d2922e29b158b82bb04b2109e8a28..49c7df1d1b4e82fa2574dfada2c903faac870d99 100644 (file)
@@ -178,7 +178,8 @@ static const char letters[] =
 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
 
 int
-__try_tempname (char *tmpl, int suffixlen, void *args, int (*try) (char *, void *))
+__try_tempname (char *tmpl, int suffixlen, void *args,
+                int (*try) (char *, void *))
 {
   int len;
   char *XXXXXX;
@@ -263,8 +264,8 @@ try_file (char *tmpl, void *flags)
 {
   int *openflags = flags;
   return __open (tmpl,
-                (*openflags & ~O_ACCMODE)
-                | O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
+                 (*openflags & ~O_ACCMODE)
+                 | O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
 }
 
 static int
index f7c98d052bda8066cb82191e5b99aef2ecae3b00..0df4381c6c5e8e5b5a5ae04d5d7a2fa8a8b57c7c 100644 (file)
@@ -51,7 +51,7 @@ extern int gen_tempname (char *tmpl, int suffixlen, int flags, int kind);
    name to try.  If TRY returns a non-negative number, TRY_GEN_TEMPNAME
    returns with this value.  Otherwise, if errno is set to EEXIST, another
    name is tried, or else TRY_GEN_TEMPNAME returns -1. */
-extern int try_tempname(char *tmpl, int suffixlen, void *args,
-                       int (*try) (char *, void *));
+extern int try_tempname (char *tmpl, int suffixlen, void *args,
+                         int (*try) (char *, void *));
 
 #endif /* GL_TEMPNAME_H */
index c589d708ec6b1b3516ec547d618e1d2ce5fea788..3767bf9acc2747adaab8b065e07e9055ffbbb4a8 100644 (file)
@@ -1,5 +1,5 @@
 Description:
-gen_tempname() and try_tempname() functions: create a private temporary file or directory.
+gen_tempname() and try_tempname(): create a private temporary file or directory.
 
 Files:
 lib/tempname.c