Skip to content

Commit ad4b254

Browse files
author
Jan Synacek
committed
ninfod: remove unused variables
1 parent 3a86a25 commit ad4b254

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ninfod/ninfod.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,8 @@ static void set_logfile(void)
427427

428428
static void cleanup_pidfile(void)
429429
{
430-
int err;
431-
432430
if (daemonized && opt_p) {
433-
err = unlink(opt_p);
431+
unlink(opt_p);
434432
DEBUG(LOG_ERR, "failed to unlink file '%s' : %s\n",
435433
opt_p, strerror(errno));
436434
}
@@ -662,7 +660,6 @@ static void print_usage(void) {
662660
int main (int argc, char **argv)
663661
{
664662
int sock_errno = 0;
665-
int ret;
666663

667664
appname = argv[0];
668665
set_logfile();

0 commit comments

Comments
 (0)