mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-12-23 01:11:47 +00:00
ntk-console: Additional cleanup, no functional change
This commit is contained in:
parent
e23eaafd7b
commit
84e377eff5
@ -207,7 +207,7 @@ wait_session(int server_fd)
|
||||
void*
|
||||
console_recv_send(void *arg)
|
||||
{
|
||||
char* uargv;
|
||||
char* uargv = NULL;
|
||||
|
||||
opensocket();
|
||||
wait_session(serverfd);
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "console.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
@ -196,7 +197,8 @@ console_uptime(void)
|
||||
uptime_month1 -= uptime_month;
|
||||
uptime_year1 -= uptime_year;
|
||||
|
||||
printf("Total Uptime is: %i Year(s), %i Month(s), %i Day(s), %i Hour(s), %i Minute(s), %i Second(s)\n",uptime_year1, uptime_month1, uptime_day1, uptime_hour1, uptime_min1, uptime_sec1);
|
||||
printf("Total Uptime is: %i Year(s), %i Month(s), %i Day(s), %i Hour(s), %i Minute(s), %i Second(s)\n",
|
||||
uptime_year1, uptime_month1, uptime_day1, uptime_hour1, uptime_min1, uptime_sec1);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user