c99 warnings again
This commit is contained in:
parent
ade43a692b
commit
80b73a78e4
@ -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 */
|
||||
|
@ -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);
|
||||
|
||||
|
6
skill.c
6
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){
|
||||
|
Loading…
Reference in New Issue
Block a user