ps: eliminated inadvertent trailing double semi-colons

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2020-03-11 00:00:00 -05:00 committed by Craig Small
parent 11af3b2020
commit b8f757080a

View File

@ -140,7 +140,7 @@ static const char *parse_tty(char *str, sel_union *ret){
char path[4096]; char path[4096];
if(str[0]=='/'){ if(str[0]=='/'){
if(stat(str, &sbuf) >= 0) goto found_it; if(stat(str, &sbuf) >= 0) goto found_it;
return _("TTY could not be found");; return _("TTY could not be found");
} }
#define lookup(p) \ #define lookup(p) \
snprintf(path,4096,p,str); \ snprintf(path,4096,p,str); \
@ -164,7 +164,7 @@ static const char *parse_tty(char *str, sel_union *ret){
return 0; return 0;
} }
#undef lookup #undef lookup
return _("TTY could not be found");; return _("TTY could not be found");
found_it: found_it:
if(!S_ISCHR(sbuf.st_mode)) return _("list member was not a TTY"); if(!S_ISCHR(sbuf.st_mode)) return _("list member was not a TTY");
ret->tty = sbuf.st_rdev; ret->tty = sbuf.st_rdev;