~ubuntu-branches/debian/squeeze/util-linux/squeeze

« back to all changes in this revision

Viewing changes to debian/patches/10warnings.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2006-01-17 07:40:56 UTC
  • Revision ID: james.westby@ubuntu.com-20060117074056-rp82hbyn6br8vwmr
Tags: 2.12r-4
Stupid fat-fingers typo.  Closes: #348483

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 10warnings.dpatch by LaMont Jones <lamont@debian.org>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Fix compiler warnings
 
6
 
 
7
@DPATCH@
 
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
 
11
@@ -296,6 +296,7 @@
 
12
     int cal[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 };
 
13
     int dayspast=0;
 
14
 
 
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
 
22
@@ -325,9 +325,9 @@
 
23
                shname = shell;
 
24
 
 
25
        if (cflg)
 
26
-               execl(shell, shname, "-c", cflg, 0);
 
27
+               execl(shell, shname, "-c", cflg, NULL);
 
28
        else
 
29
-               execl(shell, shname, "-i", 0);
 
30
+               execl(shell, shname, "-i", NULL);
 
31
 
 
32
        perror(shell);
 
33
        fail();