diff options
author | Paul Smith <psmith@gnu.org> | 2022-10-15 17:03:21 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2022-10-15 18:39:32 -0400 |
commit | c453f898a00db16e3fc3648ffd65fcf3a23dc806 (patch) | |
tree | 7e987e1b3543220bd557bd70f9d9a2e6f365a192 /src/makeint.h | |
parent | 18c4b508ef24596470b64ddf058c0115ac75fbc2 (diff) | |
download | make-git-c453f898a00db16e3fc3648ffd65fcf3a23dc806.tar.gz |
Use (void) rather than () in function declarations
In C, a function declaration with () allows any set of arguments.
Use (void) to mean "no arguments".
* src/dep.h: Switch () to (void) for functions with no arguments.
* src/makeint.h: Ditto.
* src/os.h: Ditto.
* src/shuffle.h: Ditto.
* src/variable.h: Ditto.
Diffstat (limited to 'src/makeint.h')
-rw-r--r-- | src/makeint.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/makeint.h b/src/makeint.h index 89a5f770..276def9a 100644 --- a/src/makeint.h +++ b/src/makeint.h @@ -526,7 +526,7 @@ void error (const floc *flocp, size_t length, const char *fmt, ...) ATTRIBUTE ((__format__ (__printf__, 3, 4))); void fatal (const floc *flocp, size_t length, const char *fmt, ...) ATTRIBUTE ((noreturn, __format__ (__printf__, 3, 4))); -void out_of_memory () NORETURN; +void out_of_memory (void) NORETURN; /* When adding macros to this list be sure to update the value of XGETTEXT_OPTIONS in the po/Makevars file. */ @@ -554,8 +554,8 @@ unsigned int make_toui (const char*, const char**); char *make_lltoa (long long, char *); char *make_ulltoa (unsigned long long, char *); void make_seed (unsigned int); -unsigned int make_rand (); -pid_t make_pid (); +unsigned int make_rand (void); +pid_t make_pid (void); void *xmalloc (size_t); void *xcalloc (size_t); void *xrealloc (void *, size_t); @@ -570,7 +570,7 @@ int alpha_compare (const void *, const void *); void print_spaces (unsigned int); char *find_percent (char *); const char *find_percent_cached (const char **); -char *get_tmppath (); +char *get_tmppath (void); int get_tmpfd (char **); FILE *get_tmpfile (char **); ssize_t writebuf (int, const void *, size_t); @@ -661,10 +661,10 @@ long int lseek (); # ifdef HAVE_GETCWD # if !defined(VMS) && !defined(__DECC) -char *getcwd (); +char *getcwd (void); # endif # else -char *getwd (); +char *getwd (void); # define getcwd(buf, len) getwd (buf) # endif |