diff --git a/proc/sig.c b/proc/sig.c index f2db90e7..f5971637 100644 --- a/proc/sig.c +++ b/proc/sig.c @@ -159,7 +159,7 @@ static const char *signal_number_to_name(int signo){ return buf; } -int print_given_signals(int argc, const char **argv, int max_line){ +int print_given_signals(int argc, const char *restrict const *restrict argv, int max_line){ char buf[1280]; /* 128 signals, "RTMIN+xx" is largest */ int ret = 0; /* to be used as exit code by caller */ int place = 0; /* position on this line */ diff --git a/proc/sig.h b/proc/sig.h index 412093a3..9640f989 100644 --- a/proc/sig.h +++ b/proc/sig.h @@ -14,7 +14,7 @@ /* return -1 on failure */ extern int signal_name_to_number(const char *restrict name); -extern int print_given_signals(int argc, const char **argv, int max_line); +extern int print_given_signals(int argc, const char *restrict const *restrict argv, int max_line); extern void pretty_print_signals(void); diff --git a/skill.c b/skill.c index dbd9ac0c..18ebbd1b 100644 --- a/skill.c +++ b/skill.c @@ -31,7 +31,7 @@ static int f_flag, i_flag, v_flag, w_flag, n_flag; static int tty_count, uid_count, cmd_count, pid_count; static int *ttys; static uid_t *uids; -static char **cmds; +static const char **cmds; static int *pids; #define ENLIST(thing,addme) do{ \ @@ -535,8 +535,8 @@ selection_collection: } /***** main body */ -int main(int argc, char *argv[]){ - char *tmpstr; +int main(int argc, const char *argv[]){ + const char *tmpstr; my_pid = getpid(); saved_argc = argc; if(!argc){