mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-22 10:11:13 -03:00
Improve const and signed/unsigned correctness
This commit is contained in:
4
fish.cpp
4
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();
|
||||
|
||||
Reference in New Issue
Block a user