summaryrefslogtreecommitdiff
path: root/debian/patches/16fix_gcc_warnings.patch
blob: 06fd700f49d6934da222a1bf91f20a51463bd55a (plain)
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
Author: <hesso@pool.math.tu-berlin.de>
Description: Get rid of several minor gcc warnings.
Index: screen/attacher.c
===================================================================
--- screen.orig/attacher.c	2014-04-17 14:19:15.702758400 +0200
+++ screen/attacher.c	2014-04-17 14:19:15.638762477 +0200
@@ -848,7 +848,7 @@
   pam_handle_t *pamh = 0;
   int pam_error;
 #endif
-  char *pass, mypass[16 + 1], salt[3];
+  char *pass = 0, mypass[16 + 1], salt[3];
   int using_pam = 1;
 
 #ifdef USE_PAM
Index: screen/layer.c
===================================================================
--- screen.orig/layer.c	2014-04-17 14:19:15.702758400 +0200
+++ screen/layer.c	2014-04-17 14:19:15.642762218 +0200
@@ -493,7 +493,7 @@
 void
 LClearLine(l, y, xs, xe, bce, ol)
 struct layer *l;
-int xs, xe, bce;
+int y, xs, xe, bce;
 struct mline *ol;
 {
   struct canvas *cv;