Removed deprecation errors in src/node.cc

Removed constness on string litterals. This should cause no problem
since we're not modifying them.
This commit is contained in:
Jonas Pfenniger authored and Ryan Dahl committed 2010-02-24 13:16:52 -08:00
1 parent e0ecf4f8f5
commit 8f59cccb75
1 file changed
+2 -2
+2 -2
View File
@@ -1197,7 +1197,7 @@ static void ParseArgs(int *argc, char **argv) {
const char *arg = argv[i];
if (strstr(arg, "--debug") == arg) {
ParseDebugOpt(arg);
argv[i] = reinterpret_cast<const char*>("");
argv[i] = const_cast<char*>("");
option_end_index = i;
} else if (strcmp(arg, "--version") == 0 || strcmp(arg, "-v") == 0) {
printf("%s\n", NODE_VERSION);
@@ -1209,7 +1209,7 @@ static void ParseArgs(int *argc, char **argv) {
PrintHelp();
exit(0);
} else if (strcmp(arg, "--v8-options") == 0) {
argv[i] = reinterpret_cast<const char*>("--help");
argv[i] = const_cast<char*>("--help");
option_end_index = i+1;
} else if (argv[i][0] != '-') {
option_end_index = i-1;