aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish.cpp
diff options
context:
space:
mode:
authorGravatar Peter Ammon <corydoras@ridiculousfish.com>2012-01-14 22:32:45 -0800
committerGravatar Peter Ammon <corydoras@ridiculousfish.com>2012-01-14 22:32:45 -0800
commit9b133a978d5f33985a9b66d3a75165e3d50cdfa3 (patch)
treee846e195756904d8c007ae1f33e77a53d696102c /fish.cpp
parent203c749e6cc2d5ac0e9e8e240c77d94e179c60d0 (diff)
Improve const and signed/unsigned correctness
Diffstat (limited to 'fish.cpp')
-rw-r--r--fish.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fish.cpp b/fish.cpp
index b7daa8a8..11865255 100644
--- a/fish.cpp
+++ b/fish.cpp
@@ -110,7 +110,7 @@ static int read_init()
Parse the argument list, return the index of the first non-switch
arguments.
*/
-static int fish_parse_opt( int argc, char **argv, char **cmd_ptr )
+static int fish_parse_opt( int argc, char **argv, const char **cmd_ptr )
{
int my_optind;
int force_interactive=0;
@@ -280,7 +280,7 @@ int main( int argc, char **argv )
{
struct stat tmp;
int res=1;
- char *cmd=0;
+ const char *cmd=0;
int my_optind=0;
halloc_util_init();