mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 10:12:18 +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*
|
void*
|
||||||
console_recv_send(void *arg)
|
console_recv_send(void *arg)
|
||||||
{
|
{
|
||||||
char* uargv;
|
char* uargv = NULL;
|
||||||
|
|
||||||
opensocket();
|
opensocket();
|
||||||
wait_session(serverfd);
|
wait_session(serverfd);
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include "console.h"
|
#include "console.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
@ -196,7 +197,8 @@ console_uptime(void)
|
|||||||
uptime_month1 -= uptime_month;
|
uptime_month1 -= uptime_month;
|
||||||
uptime_year1 -= uptime_year;
|
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