rpms/hplip/devel hplip-strstr-const.patch, NONE, 1.1 hplip.spec, 1.199, 1.200
Tim Waugh
twaugh at fedoraproject.org
Fri Feb 20 13:17:24 UTC 2009
- Previous message (by thread): rpms/hplip/devel .cvsignore, 1.30, 1.31 hplip-libsane.patch, 1.4, 1.5 hplip-no-root-config.patch, 1.8, 1.9 hplip.spec, 1.198, 1.199 sources, 1.30, 1.31 hplip-quit.patch, 1.1, NONE hplip-systray.patch, 1.2, NONE
- Next message (by thread): rpms/python-pyblock/devel .cvsignore, 1.34, 1.35 python-pyblock.spec, 1.57, 1.58 sources, 1.37, 1.38
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: twaugh
Update of /cvs/pkgs/rpms/hplip/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24591
Modified Files:
hplip.spec
Added Files:
hplip-strstr-const.patch
Log Message:
Include patch to make it build.
hplip-strstr-const.patch:
--- NEW FILE hplip-strstr-const.patch ---
diff -up hplip-3.9.2/prnt/hpijs/dj3320.cpp.strstr-const hplip-3.9.2/prnt/hpijs/dj3320.cpp
--- hplip-3.9.2/prnt/hpijs/dj3320.cpp.strstr-const 2009-02-20 00:38:04.000000000 +0000
+++ hplip-3.9.2/prnt/hpijs/dj3320.cpp 2009-02-20 11:27:51.000000000 +0000
@@ -403,7 +403,7 @@ DISPLAY_STATUS DJ3320::ParseError (BYTE
{
DRIVER_ERROR err = NO_ERROR;
BYTE byDevIDBuffer[DevIDBuffSize];
- char *pcStr = NULL;
+ const char *pcStr = NULL;
BYTE byStatus1, byStatus2;
memset(byDevIDBuffer, 0, sizeof(byDevIDBuffer));
diff -up hplip-3.9.2/prnt/hpijs/registry.cpp.strstr-const hplip-3.9.2/prnt/hpijs/registry.cpp
--- hplip-3.9.2/prnt/hpijs/registry.cpp.strstr-const 2009-02-20 00:38:04.000000000 +0000
+++ hplip-3.9.2/prnt/hpijs/registry.cpp 2009-02-20 11:27:00.000000000 +0000
@@ -292,15 +292,15 @@ DRIVER_ERROR DeviceRegistry::SelectDevic
device = eDJ3320;
match = TRUE;
}
- char *cmdStr = strstr ((const char *) DevIDBuffer+2, "CMD:");
+ const char *cmdStr = strstr ((const char *) DevIDBuffer+2, "CMD:");
if (!cmdStr)
{
cmdStr = strstr ((const char *) DevIDBuffer+2, "COMMAND SET:");
}
- if (!match && cmdStr && (strstr ((const char *) cmdStr+4, "POSTSCRIPT") ||
- strstr ((const char *) cmdStr+4, "PostScript") ||
- strstr ((const char *) cmdStr+4, "Postscript") ||
- strstr ((const char *) cmdStr+4, "postscript") ))
+ if (!match && cmdStr && (strstr (cmdStr+4, "POSTSCRIPT") ||
+ strstr (cmdStr+4, "PostScript") ||
+ strstr (cmdStr+4, "Postscript") ||
+ strstr (cmdStr+4, "postscript") ))
{
device = ePScript;
match = TRUE;
Index: hplip.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hplip/devel/hplip.spec,v
retrieving revision 1.199
retrieving revision 1.200
diff -u -r1.199 -r1.200
--- hplip.spec 20 Feb 2009 13:13:49 -0000 1.199
+++ hplip.spec 20 Feb 2009 13:16:54 -0000 1.200
@@ -1,7 +1,7 @@
Summary: HP Linux Imaging and Printing Project
Name: hplip
Version: 3.9.2
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+ and MIT
Group: System Environment/Daemons
Conflicts: system-config-printer < 0.6.132
@@ -326,7 +326,7 @@
exit 0
%changelog
-* Fri Feb 20 2009 Tim Waugh <twaugh at redhat.com> 3.9.2-1
+* Fri Feb 20 2009 Tim Waugh <twaugh at redhat.com> 3.9.2-2
- 3.9.2. No longer need systray or quit patches.
* Tue Jan 27 2009 Tim Waugh <twaugh at redhat.com> 2.8.12-7
- Previous message (by thread): rpms/hplip/devel .cvsignore, 1.30, 1.31 hplip-libsane.patch, 1.4, 1.5 hplip-no-root-config.patch, 1.8, 1.9 hplip.spec, 1.198, 1.199 sources, 1.30, 1.31 hplip-quit.patch, 1.1, NONE hplip-systray.patch, 1.2, NONE
- Next message (by thread): rpms/python-pyblock/devel .cvsignore, 1.34, 1.35 python-pyblock.spec, 1.57, 1.58 sources, 1.37, 1.38
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list