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