| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | $NetBSD: patch-src_args_cpp,v 1.2 2012/07/01 09:24:45 sbd Exp $] | | 1 | $NetBSD: patch-src_args_cpp,v 1.3 2015/12/29 03:38:03 dholland Exp $ |
2 | | | 2 | |
3 | Cast away the const in a strstr call. | | 3 | Cast away the const in a strstr call. |
4 | | | 4 | |
5 | --- src/args.cpp.orig 2004-05-05 23:49:20.000000000 +0000 | | 5 | --- src/args.cpp.orig 2004-05-05 23:49:20.000000000 +0000 |
6 | +++ src/args.cpp | | 6 | +++ src/args.cpp |
7 | @@ -102,7 +102,7 @@ bool ConsolePlayer::parseTime (const cha | | 7 | @@ -102,7 +102,7 @@ bool ConsolePlayer::parseTime (const cha |
8 | if (*str == '\0') | | 8 | if (*str == '\0') |
9 | return false; | | 9 | return false; |
10 | | | 10 | |
11 | - sep = strstr (str, ":"); | | 11 | - sep = strstr (str, ":"); |
12 | + sep = (char*) strstr (str, ":"); | | 12 | + sep = (char*) strstr (str, ":"); |
13 | if (!sep) | | 13 | if (!sep) |
14 | { // User gave seconds | | 14 | { // User gave seconds |