ps: eliminated inadvertent trailing double semi-colons
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
2d94282224
commit
d93609225c
@ -1309,7 +1309,7 @@ static int pr_lxcname(char *restrict const outbuf, const proc_t *restrict const
|
||||
static int pr_context(char *restrict const outbuf, const proc_t *restrict const pp){
|
||||
static void (*ps_freecon)(char*) = 0;
|
||||
static int (*ps_getpidcon)(pid_t pid, char **context) = 0;
|
||||
static int selinux_enabled = 0;;
|
||||
static int selinux_enabled = 0;
|
||||
size_t len;
|
||||
char *context;
|
||||
|
||||
|
@ -140,7 +140,7 @@ static const char *parse_tty(char *str, sel_union *ret){
|
||||
char path[4096];
|
||||
if(str[0]=='/'){
|
||||
if(stat(str, &sbuf) >= 0) goto found_it;
|
||||
return _("TTY could not be found");;
|
||||
return _("TTY could not be found");
|
||||
}
|
||||
#define lookup(p) \
|
||||
snprintf(path,4096,p,str); \
|
||||
@ -164,7 +164,7 @@ static const char *parse_tty(char *str, sel_union *ret){
|
||||
return 0;
|
||||
}
|
||||
#undef lookup
|
||||
return _("TTY could not be found");;
|
||||
return _("TTY could not be found");
|
||||
found_it:
|
||||
if(!S_ISCHR(sbuf.st_mode)) return _("list member was not a TTY");
|
||||
ret->tty = sbuf.st_rdev;
|
||||
|
Loading…
Reference in New Issue
Block a user