92d29b7eeb
mactab.cpp:290:10: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char * pos = strchr(item, ':'); ^ ~~~~~~~~~~~~~~~~~ Reported by: pkg-fallout
11 lines
356 B
C++
11 lines
356 B
C++
--- src/ukengine/mactab.cpp.orig 2006-04-09 11:46:02 UTC
|
|
+++ src/ukengine/mactab.cpp
|
|
@@ -287,7 +287,7 @@ int CMacroTable::addItem(const char *ite
|
|
char key[MAX_MACRO_KEY_LEN];
|
|
|
|
// Parse the input item
|
|
- char * pos = strchr(item, ':');
|
|
+ const char * pos = strchr(item, ':');
|
|
if (pos == NULL)
|
|
return -1;
|
|
int keyLen = (int)(pos - item);
|