Users: JSON format support

This commit is contained in:
李通洲
2023-09-08 14:32:01 +08:00
parent aafd773fe7
commit 2c59a05dff
5 changed files with 42 additions and 8 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ next:
FFUserResult* user = (FFUserResult*) ffListAdd(users);
ffStrbufInitS(&user->name, n->ut_user);
ffStrbufInitS(&user->hostname, n->ut_host);
ffStrbufInitS(&user->hostName, n->ut_host);
ffStrbufInitS(&user->tty, n->ut_line);
#ifdef __linux__
if(n->ut_addr_v6[0] || n->ut_addr_v6[1] || n->ut_addr_v6[2] || n->ut_addr_v6[3])