Mercurial > pidgin
diff src/protocols/zephyr/sysdep.h @ 12323:fc464a0abccc
[gaim-migrate @ 14627]
Function prototypes need to be of the form foo(void); instead of foo(); for function that don't take any arguments. This allows the compiler to detect mistakes were someone passes arguments to such a function.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 04 Dec 2005 18:19:56 +0000 |
parents | eadeb3a797d5 |
children |
line wrap: on
line diff
--- a/src/protocols/zephyr/sysdep.h Sun Dec 04 18:19:06 2005 +0000 +++ b/src/protocols/zephyr/sysdep.h Sun Dec 04 18:19:56 2005 +0000 @@ -32,11 +32,11 @@ # ifdef HAVE_MALLOC_H # include <malloc.h> # else -char *malloc(), *realloc(); +char *malloc(), *realloc(void); # endif -char *getenv(), *strerror(), *ctime(), *strcpy(); -time_t time(); -ZEPHYR_INT32 random(); +char *getenv(), *strerror(), *ctime(), *strcpy(void); +time_t time(void); +ZEPHYR_INT32 random(void); #endif #ifndef HAVE_RANDOM @@ -62,7 +62,7 @@ # define strchr index # define strrchr rindex # endif -char *strchr(), *strrchr(); +char *strchr(), *strrchr(void); # ifndef HAVE_MEMCPY # define memcpy(d, s, n) bcopy ((s), (d), (n)) # define memcmp bcmp @@ -131,10 +131,10 @@ # ifdef HAVE_SYS_FILE_H # include <sys/file.h> # endif -uid_t getuid(); -char *ttyname(); +uid_t getuid(void); +char *ttyname(void); #ifdef HAVE_GETHOSTID -ZEPHYR_INT32 gethostid(); +ZEPHYR_INT32 gethostid(void); #endif #endif