diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-03-15 18:44:06 -0300 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-04-24 19:49:11 -0700 |
commit | 5ca409f025fb35a20ab1ef4742a9034a36e3d959 (patch) | |
tree | 89428fe54416315e87aabc19b993c1c87b87118b | |
parent | 47ec1e2697eb856f823cc1b488c6b5a1d2077df9 (diff) |
Compile warning fixes.
Include headers for proper prototypes and "ansify" makeHashTable.
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r-- | hash.c | 2 | ||||
-rw-r--r-- | ident.c | 1 | ||||
-rw-r--r-- | mkfontscale.c | 1 |
3 files changed, 3 insertions, 1 deletions
@@ -53,7 +53,7 @@ strcpy_lwr(char *dst, char *src) } HashTablePtr -makeHashTable() +makeHashTable(void) { return calloc(NUMBUCKETS, sizeof(HashBucketPtr)); } @@ -29,6 +29,7 @@ #include <stdlib.h> #include <string.h> #include "zlib.h" +#include "ident.h" #define PCF_VERSION (('p'<<24)|('c'<<16)|('f'<<8)|1) #define PCF_PROPERTIES (1 << 0) diff --git a/mkfontscale.c b/mkfontscale.c index b538d79..5d9e3de 100644 --- a/mkfontscale.c +++ b/mkfontscale.c @@ -30,6 +30,7 @@ #include <dirent.h> #include <unistd.h> #include <errno.h> +#include <ctype.h> #include <X11/Xos.h> #include <X11/fonts/fontenc.h> |