Skip to content

Commit 7085082

Browse files
Cleanup
1 parent b02b364 commit 7085082

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/userrec.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,6 @@ void write_userfile(int idx)
568568
FILE *f;
569569
char new_userfile[(sizeof userfile) + 4]; /* 4 = strlen("~new") */
570570
char s[26];
571-
time_t tt;
572571
struct userrec *u;
573572
int ok;
574573

@@ -587,8 +586,7 @@ void write_userfile(int idx)
587586
putlog(LOG_MISC, "*", "%s", USERF_WRITING);
588587

589588
sort_userlist();
590-
tt = now;
591-
ctime_r(&tt, s);
589+
ctime_r(&now, s);
592590
fprintf(f, "#4v: %s -- %s -- written %s", ver, botnetnick, s);
593591
ok = 1;
594592
/* Add all users except the -tn user */

0 commit comments

Comments
 (0)