File: 010_old-source-diffs.patch

package info (click to toggle)
doschk 1.1-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 164 kB
  • sloc: ansic: 749; makefile: 115
file content (37 lines) | stat: -rw-r--r-- 920 bytes parent folder | download | duplicates (3)
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;