Mercurial > hg > octave-jordi > gnulib-hg
changeset 17900:c4e49082f4e2
maint: various whitespace cleanups in tempname
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.
author | Pádraig Brady <P@draigBrady.com> |
---|---|
date | Wed, 11 Feb 2015 02:46:28 +0000 |
parents | 28409c0a2a56 |
children | cf58d1b54a23 |
files | ChangeLog lib/tempname.c lib/tempname.h modules/tempname |
diffstat | 4 files changed, 14 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- a/lib/tempname.c +++ b/lib/tempname.c @@ -178,7 +178,8 @@ "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 @@ { 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
--- a/lib/tempname.h +++ b/lib/tempname.h @@ -51,7 +51,7 @@ 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 */