summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-03-15 18:44:06 -0300
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-04-24 19:49:11 -0700
commit5ca409f025fb35a20ab1ef4742a9034a36e3d959 (patch)
tree89428fe54416315e87aabc19b993c1c87b87118b
parent47ec1e2697eb856f823cc1b488c6b5a1d2077df9 (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.c2
-rw-r--r--ident.c1
-rw-r--r--mkfontscale.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index f650888..313d5b6 100644
--- a/hash.c
+++ b/hash.c
@@ -53,7 +53,7 @@ strcpy_lwr(char *dst, char *src)
}
HashTablePtr
-makeHashTable()
+makeHashTable(void)
{
return calloc(NUMBUCKETS, sizeof(HashBucketPtr));
}
diff --git a/ident.c b/ident.c
index 18402d2..80452e6 100644
--- a/ident.c
+++ b/ident.c
@@ -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>