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") ||