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;
|
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 */
|
char buf[1280]; /* 128 signals, "RTMIN+xx" is largest */
|
||||||
int ret = 0; /* to be used as exit code by caller */
|
int ret = 0; /* to be used as exit code by caller */
|
||||||
int place = 0; /* position on this line */
|
int place = 0; /* position on this line */
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
/* return -1 on failure */
|
/* return -1 on failure */
|
||||||
extern int signal_name_to_number(const char *restrict name);
|
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);
|
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 tty_count, uid_count, cmd_count, pid_count;
|
||||||
static int *ttys;
|
static int *ttys;
|
||||||
static uid_t *uids;
|
static uid_t *uids;
|
||||||
static char **cmds;
|
static const char **cmds;
|
||||||
static int *pids;
|
static int *pids;
|
||||||
|
|
||||||
#define ENLIST(thing,addme) do{ \
|
#define ENLIST(thing,addme) do{ \
|
||||||
@ -535,8 +535,8 @@ selection_collection:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/***** main body */
|
/***** main body */
|
||||||
int main(int argc, char *argv[]){
|
int main(int argc, const char *argv[]){
|
||||||
char *tmpstr;
|
const char *tmpstr;
|
||||||
my_pid = getpid();
|
my_pid = getpid();
|
||||||
saved_argc = argc;
|
saved_argc = argc;
|
||||||
if(!argc){
|
if(!argc){
|
||||||
|
Loading…
Reference in New Issue
Block a user