mirror of
https://git.freebsd.org/ports.git
synced 2025-06-10 15:20:32 -04:00
registry.cpp:249:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *cmdStr = strstr ((const char *) DevIDBuffer+2, "CMD:"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dj3320.cpp:429:24: error: assigning to 'char *' from incompatible type 'const char *' if ((pcStr = strstr((const char*)pLDLEncap->byStatusBuff + 10, "$S:")) == NULL) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PR: 212343 Regressed by: https://github.com/llvm-mirror/libcxx/commit/b4aa97130b8b
11 lines
341 B
C++
11 lines
341 B
C++
--- dj3320.cpp.orig 2005-08-22 18:47:00 UTC
|
|
+++ dj3320.cpp
|
|
@@ -400,7 +400,7 @@ DISPLAY_STATUS DJ3320::ParseError (BYTE
|
|
{
|
|
DRIVER_ERROR err = NO_ERROR;
|
|
BYTE byDevIDBuffer[DevIDBuffSize];
|
|
- char *pcStr = NULL;
|
|
+ const char *pcStr = NULL;
|
|
BYTE byStatus1, byStatus2;
|
|
|
|
memset(byDevIDBuffer, 0, sizeof(byDevIDBuffer));
|