1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 10warnings.dpatch by LaMont Jones <lamont@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Fix compiler warnings
8
diff -urNad --exclude=CVS --exclude=.svn ./misc-utils/ddate.c /tmp/dpep-work.BBs5Mx/util-linux/misc-utils/ddate.c
9
--- ./misc-utils/ddate.c 2004-09-06 15:12:40.000000000 -0600
10
+++ /tmp/dpep-work.BBs5Mx/util-linux/misc-utils/ddate.c 2006-01-15 18:25:14.000000000 -0700
12
int cal[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 };
15
+ memset(&funkychickens,0,sizeof(funkychickens));
16
/* basic range checks */
17
if (imonth < 1 || imonth > 12) {
18
funkychickens.season = -1;
19
diff -urNad --exclude=CVS --exclude=.svn ./misc-utils/script.c /tmp/dpep-work.BBs5Mx/util-linux/misc-utils/script.c
20
--- ./misc-utils/script.c 2004-12-15 08:32:52.000000000 -0700
21
+++ /tmp/dpep-work.BBs5Mx/util-linux/misc-utils/script.c 2006-01-15 18:25:57.000000000 -0700
26
- execl(shell, shname, "-c", cflg, 0);
27
+ execl(shell, shname, "-c", cflg, NULL);
29
- execl(shell, shname, "-i", 0);
30
+ execl(shell, shname, "-i", NULL);