1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
Description: fix two compiler warnings in doschk.c source
Author: Ben Pfaff <blp@gnu.org>
Last-Update: 2000-05-29
Description: remove unneeded declaration of malloc
Author: Ben Pfaff <pfaffben@debian.org>
Last-Update: 2004-07-11
--- a/doschk.c
+++ b/doschk.c
@@ -51,8 +51,7 @@
#include <stdio.h>
#include <ctype.h>
#include <string.h>
-
-extern char *malloc ();
+#include <stdlib.h>
typedef struct ENT
{
@@ -200,7 +199,7 @@
{
/* If trailing dot, it will be ignored by MSDOG, so don't */
/* actually complain. */
- if (*(cp + 1) != NULL)
+ if (*(cp + 1) != 0)
{
invalid_msg ();
printf ("%s - too many dots\n", path);
@@ -445,6 +444,7 @@
* Main entry point *
\****************************************************************/
+int
main (argc, argv)
int argc;
char **argv;
|