shorter names for states

This commit is contained in:
Nikos Mavrogiannopoulos
2014-01-10 09:39:13 +01:00
parent ed2f24daa8
commit b8cd530506
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -497,9 +497,9 @@ static int append_user_info(DBusMessageIter * subs, struct proc_st *ctmp)
}
if (ctmp->auth_status == PS_AUTH_COMPLETED)
strtmp = "authenticated";
strtmp = "connected";
else if (ctmp->auth_status == PS_AUTH_INIT)
strtmp = "authenticating";
strtmp = "auth";
else
strtmp = "pre-auth";
if (dbus_message_iter_append_basic
+3 -3
View File
@@ -638,7 +638,7 @@ void handle_list_users_cmd(DBusConnection * conn, const char *arg)
/* add header */
if (iteration++ == 0) {
fprintf(out, "%6s %8s %8s %15s %15s %6s %7s %9s %10s\n",
fprintf(out, "%6s %8s %8s %15s %15s %6s %7s %9s %9s\n",
"id", "user", "group", "ip", "vpn-ip", "device", "since",
"cipher", "status");
}
@@ -652,9 +652,9 @@ void handle_list_users_cmd(DBusConnection * conn, const char *arg)
print_time_ival7(t, out);
if (dtls_ciphersuite != NULL && dtls_ciphersuite[0] != 0)
fprintf(out, " %9s %10s\n", dtls_ciphersuite, auth);
fprintf(out, " %9s %9s\n", dtls_ciphersuite, auth);
else
fprintf(out, " %9s %10s\n", "(no dtls)", auth);
fprintf(out, " %9s %9s\n", "(no dtls)", auth);
if (!dbus_message_iter_next(&suba))
goto cleanup;