X-Git-Url: https://git.armaanb.net/?p=opendoas.git;a=blobdiff_plain;f=timestamp.c;h=c90318dd71daf7ca6cc109ff2cad725949164ef4;hp=e97c92f6ea23af4ec2835dfc66a3b2d056c3bfd0;hb=78c1c0f2a99df80678fbff77911b498c5311dcc0;hpb=22370cb3e35eca03455a38284c70ad1ad4eb2f4b diff --git a/timestamp.c b/timestamp.c index e97c92f..c90318d 100644 --- a/timestamp.c +++ b/timestamp.c @@ -141,13 +141,11 @@ proc_info(pid_t pid, int *ttynr, unsigned long long *starttime) if (p == ep || (errno == ERANGE && *starttime == ULLONG_MAX)) return -1; - break; + return 0; } - if (n == 23) - break; } - return 0; + return -1; } #else #error "proc_info not implemented"