Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 192935 Details for
Bug 271814
[patch] net-print/hplip-3.9.2 fails to build with sys-devel/gcc-4.4
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for hplip to build with gcc-4.4
hplip-3.9.2-gcc44.patch (text/plain), 1.50 KB, created by
hirakendu
on 2009-05-29 22:07:57 UTC
(
hide
)
Description:
patch for hplip to build with gcc-4.4
Filename:
MIME Type:
Creator:
hirakendu
Created:
2009-05-29 22:07:57 UTC
Size:
1.50 KB
patch
obsolete
>diff -ruN hplip-3.9.2.orig/prnt/hpijs/dj3320.cpp hplip-3.9.2.new/prnt/hpijs/dj3320.cpp >--- hplip-3.9.2.orig/prnt/hpijs/dj3320.cpp 2009-02-19 16:38:04.000000000 -0800 >+++ hplip-3.9.2.new/prnt/hpijs/dj3320.cpp 2009-05-29 14:55:28.000000000 -0700 >@@ -429,7 +429,7 @@ > pLDLEncap->bNewStatus = FALSE; > > // First 10 bytes of m_pbyReadBuff are packet header. Status query from printer has $S: >- if ((pcStr = strstr((const char*)pLDLEncap->byStatusBuff + 10, "$S:")) == NULL) >+ if ((pcStr = (char *) strstr((const char*)pLDLEncap->byStatusBuff + 10, "$S:")) == NULL) > { > m_dsCurrentStatus = DISPLAY_COMM_PROBLEM; > return DISPLAY_COMM_PROBLEM; >diff -ruN hplip-3.9.2.orig/prnt/hpijs/registry.cpp hplip-3.9.2.new/prnt/hpijs/registry.cpp >--- hplip-3.9.2.orig/prnt/hpijs/registry.cpp 2009-02-19 16:38:04.000000000 -0800 >+++ hplip-3.9.2.new/prnt/hpijs/registry.cpp 2009-05-29 14:55:33.000000000 -0700 >@@ -292,10 +292,10 @@ > device = eDJ3320; > match = TRUE; > } >- char *cmdStr = strstr ((const char *) DevIDBuffer+2, "CMD:"); >+ char *cmdStr = (char *) strstr ((const char *) DevIDBuffer+2, "CMD:"); > if (!cmdStr) > { >- cmdStr = strstr ((const char *) DevIDBuffer+2, "COMMAND SET:"); >+ cmdStr = (char *) strstr ((const char *) DevIDBuffer+2, "COMMAND SET:"); > } > if (!match && cmdStr && (strstr ((const char *) cmdStr+4, "POSTSCRIPT") || > strstr ((const char *) cmdStr+4, "PostScript") ||
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 271814
: 192935