]> andersk Git - moira.git/blobdiff - lib/fixhost.c
Fix another freeing-memory-we-didn't-malloc bug in AddMachine. This
[moira.git] / lib / fixhost.c
index 54bc7205408ddb6629730c313a8426597cf8fc87..d712d6eb7cb6043fd7fbff03b44f2a92875d7c1e 100644 (file)
@@ -10,7 +10,7 @@
 
 #ifndef lint
 static char *rcsid_fixhost_c = "$Header$";
-#endif lint
+#endif
 
 #include <mit-copyright.h>
 #include <sys/types.h>
@@ -18,6 +18,7 @@ static char *rcsid_fixhost_c = "$Header$";
 #include <netinet/in.h>
 #include <netdb.h>
 #include <stdio.h>
+#include <stdlib.h>
 #ifdef POSIX
 #include <sys/utsname.h>
 #endif
@@ -25,9 +26,6 @@ static char *rcsid_fixhost_c = "$Header$";
 #include <ctype.h>
 #include <moira.h>
 
-extern char *malloc();
-extern char *realloc();
-
 /*
  * Canonicalize hostname:
  *  if it is in double-quotes, then strip the quotes and return the name.
This page took 0.044104 seconds and 4 git commands to generate.