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