~ubuntu-branches/ubuntu/dapper/hplip/dapper-security

« back to all changes in this revision

Viewing changes to debian/patches/40_gcc4_buildfixes.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Henrique de Moraes Holschuh
  • Date: 2005-02-01 12:46:56 UTC
  • Revision ID: james.westby@ubuntu.com-20050201124656-g6cgoa5uezd5lnbo
Tags: 0.8.7-4
* Henrique de Moraes Holschuh:
  * HPLIP:
    * Remove stray tab on 50_securityfix_umask.dpatch.  Reupload in
      case python decides to croak on us because of it
    * Remove unneeded (but harmless) patch 21_base_pidfile_support.dpatch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
## gcc4_buildfixes.dpatch by Henrique de Moraes Holschuh <hmh@debian.org>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: fix FTBFS problems with gcc 4.0 on AMD64 (closes: #286353)
 
6
## DP: patch by Andreas Jochens <aj@andaco.de>
 
7
 
 
8
if [ $# -ne 1 ]; then
 
9
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
10
    exit 1
 
11
fi
 
12
 
 
13
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
 
14
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
 
15
 
 
16
case "$1" in
 
17
       -patch) patch $patch_opts -p1 < $0;;
 
18
       -unpatch) patch $patch_opts -p1 -R < $0;;
 
19
        *)
 
20
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
21
                exit 1;;
 
22
esac
 
23
 
 
24
exit 0
 
25
 
 
26
@DPATCH@
 
27
diff -urNad hplip/prnt/hpijs/ljcolor.cpp /tmp/dpep.EcmGCg/hplip/prnt/hpijs/ljcolor.cpp
 
28
--- hplip/prnt/hpijs/ljcolor.cpp        2005-01-21 00:19:51.000000000 -0200
 
29
+++ hplip/prnt/hpijs/ljcolor.cpp        2005-01-21 11:25:17.000000000 -0200
 
30
@@ -286,7 +286,7 @@
 
31
 
 
32
     if (thePrinter->IOMode.bStatus)
 
33
     {
 
34
-        sprintf (res, "@PJL JOB NAME = \"%d\"\015\012", (int) (thePrinter));
 
35
+        sprintf (res, "@PJL JOB NAME = \"%ld\"\015\012", (long) (thePrinter));
 
36
         err = thePrinter->Send ((const BYTE *) res, strlen (res));
 
37
         ERRCHECK;
 
38
     }
 
39
@@ -405,8 +405,8 @@
 
40
     DRIVER_ERROR    err = NO_ERROR;
 
41
     if (thePrinter->IOMode.bStatus)
 
42
     {
 
43
-        sprintf (szBuff, "\033E\033%%-12345X@PJL EOJ NAME = \"%d\"\015\012@PJL RESET\015\012",
 
44
-                 (int) (thePrinter));
 
45
+        sprintf (szBuff, "\033E\033%%-12345X@PJL EOJ NAME = \"%ld\"\015\012@PJL RESET\015\012",
 
46
+                 (long) (thePrinter));
 
47
         err = thePrinter->Send ((const BYTE *) szBuff, strlen (szBuff));
 
48
         ERRCHECK;
 
49
     }
 
50
@@ -585,7 +585,7 @@
 
51
         while (*tmpStr < '0' || *tmpStr > '9')
 
52
             tmpStr++;
 
53
         sscanf (tmpStr, "%d", &iErrorCode);
 
54
-        if (iErrorCode != (int) (this))
 
55
+        if (iErrorCode != (long) (this))
 
56
             return DISPLAY_PRINTING;
 
57
     }
 
58
 
 
59
diff -urNad hplip/prnt/hpijs/ljmono.cpp /tmp/dpep.EcmGCg/hplip/prnt/hpijs/ljmono.cpp
 
60
--- hplip/prnt/hpijs/ljmono.cpp 2005-01-21 00:19:51.000000000 -0200
 
61
+++ hplip/prnt/hpijs/ljmono.cpp 2005-01-21 11:25:17.000000000 -0200
 
62
@@ -185,7 +185,7 @@
 
63
 
 
64
     if (thePrinter->IOMode.bStatus)
 
65
     {
 
66
-        sprintf (res, "@PJL JOB NAME = \"%d\"\015\012", (int) (thePrinter));
 
67
+        sprintf (res, "@PJL JOB NAME = \"%ld\"\015\012", (long) (thePrinter));
 
68
         err = thePrinter->Send ((const BYTE *) res, strlen (res));
 
69
         ERRCHECK;
 
70
 
 
71
@@ -279,8 +279,8 @@
 
72
     DRIVER_ERROR    err = NO_ERROR;
 
73
     if (thePrinter->IOMode.bStatus)
 
74
     {
 
75
-        sprintf (szBuff, "\033E\033%%-12345X@PJL EOJ NAME = \"%d\"\015\012@PJL RESET\015\012",
 
76
-                (int) (thePrinter));
 
77
+        sprintf (szBuff, "\033E\033%%-12345X@PJL EOJ NAME = \"%ld\"\015\012@PJL RESET\015\012",
 
78
+                (long) (thePrinter));
 
79
         err = thePrinter->Send ((const BYTE *) szBuff, strlen (szBuff));
 
80
     }
 
81
 
 
82
@@ -350,7 +350,7 @@
 
83
         while (*tmpStr < '0' || *tmpStr > '9')
 
84
             tmpStr++;
 
85
         sscanf (tmpStr, "%d", &iErrorCode);
 
86
-        if (iErrorCode != (int) (this))
 
87
+        if (iErrorCode != (long) (this))
 
88
             return DISPLAY_PRINTING;
 
89
     }
 
90