File: 06_gcc_warnings.patch

package info (click to toggle)
super 3.30.0-3%2Bsqueeze2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,088 kB
  • ctags: 755
  • sloc: ansic: 10,089; sh: 288; makefile: 201
file content (96 lines) | stat: -rw-r--r-- 2,670 bytes parent folder | download
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Fix warnings from `gcc -Wall'.
Index: super/approve.c
===================================================================
--- super.orig/approve.c	2008-04-19 17:56:54.000000000 +0200
+++ super/approve.c	2008-04-19 17:57:30.000000000 +0200
@@ -754,8 +754,8 @@
 printhelp(verbosity)
 int verbosity;
 {
-    char **p, *s;
-    int i, j, n;
+    char **p;
+    int i, j;
     ArgRangePat *arp;
 
     if (verbosity == HELP_BASIC) {
Index: super/checks.c
===================================================================
--- super.orig/checks.c	2008-04-19 17:56:54.000000000 +0200
+++ super/checks.c	2008-04-19 17:57:30.000000000 +0200
@@ -26,7 +26,7 @@
  */
 
 static int created_user_table = 0;
-static netgrp_u_compare(pattern, user)
+static int netgrp_u_compare(pattern, user)
   char *pattern;
   char *user;
 {
@@ -50,7 +50,7 @@
     }
 
     item.key = keybuf;
-    if (found_item = s_hsearch(HS_USER, item, FIND)) {
+    if ((found_item = s_hsearch(HS_USER, item, FIND))) {
         return found_item->data == YES? 1: 0;
     }
     passed = innetgr(pattern, NULL, user, NULL);
@@ -73,7 +73,7 @@
 }
 
 static int created_host_table = 0;
-static netgrp_h_compare(pattern, host)
+static int netgrp_h_compare(pattern, host)
   char *pattern;
   char *host;
 {
@@ -97,7 +97,7 @@
     }
 
     item.key = keybuf;
-    if (found_item = s_hsearch(HS_HOST, item, FIND)) {
+    if ((found_item = s_hsearch(HS_HOST, item, FIND))) {
         return found_item->data == YES? 1: 0;
     }
     passed = innetgr(pattern, host, NULL, NULL);
@@ -1086,6 +1086,8 @@
     char mkdirMsg[1000];
     char *authuser;
 
+    file_exists = 0;
+
     if (!localinfo.authinfo.required)
 	return 0;			/* don't need authentication */
 
@@ -1924,7 +1926,7 @@
     }
 
     item.key = keybuf;
-    if (found_item = s_hsearch(HS_GROUP, item, FIND)) {
+    if ((found_item = s_hsearch(HS_GROUP, item, FIND))) {
         return found_item->data == YES? 1: 0;
     }
 
Index: super/super.c
===================================================================
--- super.orig/super.c	2008-04-19 17:56:54.000000000 +0200
+++ super/super.c	2008-04-19 17:57:30.000000000 +0200
@@ -900,7 +900,7 @@
 char **envp;
 int n_builtin;
 {
-    char *s, *t, **p, **sp;
+    char  *t, **p, **sp;
     char *cdpath;
     int isglobal, j, iarg;
     ArgRangePat  *argpats, *arp;
@@ -1750,7 +1750,7 @@
 }
 
 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-/* Check if -r path matches actual path.
+/* Check if -r path matches actual path.                                   */
 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 int
 check_rpath(r_path, xpath)