7a2b19
diff -up hplip-3.9.6b/prnt/hpijs/dj3320.cpp.strstr-const hplip-3.9.6b/prnt/hpijs/dj3320.cpp
7a2b19
--- hplip-3.9.6b/prnt/hpijs/dj3320.cpp.strstr-const	2009-06-25 21:02:29.000000000 +0100
7a2b19
+++ hplip-3.9.6b/prnt/hpijs/dj3320.cpp	2009-07-27 16:14:52.868542337 +0100
7a2b19
@@ -405,7 +405,7 @@ DISPLAY_STATUS DJ3320::ParseError (BYTE 
7a2b19
 {
7a2b19
     DRIVER_ERROR err = NO_ERROR;
7a2b19
     BYTE byDevIDBuffer[DevIDBuffSize];
7a2b19
-    char *pcStr = NULL;
7a2b19
+    const char *pcStr = NULL;
7a2b19
     BYTE byStatus1, byStatus2;
7a2b19
 
7a2b19
     memset(byDevIDBuffer, 0, sizeof(byDevIDBuffer));
7a2b19
diff -up hplip-3.9.6b/prnt/hpijs/registry.cpp.strstr-const hplip-3.9.6b/prnt/hpijs/registry.cpp
7a2b19
--- hplip-3.9.6b/prnt/hpijs/registry.cpp.strstr-const	2009-06-25 21:02:29.000000000 +0100
7a2b19
+++ hplip-3.9.6b/prnt/hpijs/registry.cpp	2009-07-27 16:18:41.583417187 +0100
7a2b19
@@ -290,14 +290,14 @@ DRIVER_ERROR DeviceRegistry::SelectDevic
7a2b19
         err = pSS->GetDeviceID(DevIDBuffer, DevIDBuffSize, FALSE);
7a2b19
         ERRCHECK;   // should be either NO_ERROR or BAD_DEVICE_ID
7a2b19
 
7a2b19
-		char	*cmdStr = (char *) strstr ((const char *) DevIDBuffer+2, "CMD:");
7a2b19
+	char	*cmdStr = strstr ((char *) DevIDBuffer+2, "CMD:");
7a2b19
         char    *cmdStrEnd;
7a2b19
         if ((strstr((const char *) DevIDBuffer+2,"CMD:LDL")))
7a2b19
         {
7a2b19
             device = eDJ3320;
7a2b19
             match = TRUE;
7a2b19
         }
7a2b19
-        if (!match && cmdStr && (cmdStrEnd = (char *) strstr (cmdStr, ";")))
7a2b19
+        if (!match && cmdStr && (cmdStrEnd = strstr (cmdStr, ";")))
7a2b19
         {
7a2b19
             *cmdStrEnd = '\0';
7a2b19
             if (strstr (cmdStr, "LDL"))
7a2b19
@@ -309,12 +309,12 @@ DRIVER_ERROR DeviceRegistry::SelectDevic
7a2b19
         }
7a2b19
 		if (!match && !cmdStr)
7a2b19
 		{
7a2b19
-			cmdStr = (char *) strstr ((const char *) DevIDBuffer+2, "COMMAND SET:");
7a2b19
+			cmdStr = strstr ((char *) DevIDBuffer+2, "COMMAND SET:");
7a2b19
 		}
7a2b19
-		if (!match && cmdStr && (strstr ((const char *) cmdStr+4, "POSTSCRIPT") || 
7a2b19
-			                     strstr ((const char *) cmdStr+4, "PostScript") || 
7a2b19
-					             strstr ((const char *) cmdStr+4, "Postscript") || 
7a2b19
-					             strstr ((const char *) cmdStr+4, "postscript") ))
7a2b19
+		if (!match && cmdStr && (strstr (cmdStr+4, "POSTSCRIPT") || 
7a2b19
+			                     strstr (cmdStr+4, "PostScript") || 
7a2b19
+					             strstr (cmdStr+4, "Postscript") || 
7a2b19
+					             strstr (cmdStr+4, "postscript") ))
7a2b19
 		{
7a2b19
 			device = ePScript;
7a2b19
 			match = TRUE;