summaryrefslogtreecommitdiffstats
path: root/eurephiadm/commands
diff options
context:
space:
mode:
Diffstat (limited to 'eurephiadm/commands')
-rw-r--r--eurephiadm/commands/users.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/eurephiadm/commands/users.c b/eurephiadm/commands/users.c
index e226cfd..50f9790 100644
--- a/eurephiadm/commands/users.c
+++ b/eurephiadm/commands/users.c
@@ -339,7 +339,7 @@ void xmlPrint_lastlog(xmlXPathContext *xpathCTX, int verb, const char *xpath) {
printf(" %-37.37s %37.37s\n", "Firewall access profile", "FW Destination");
#endif
}
- printf(" --------------------------------------------------------------------"
+ printf("---------------------------------------------------------------------"
"----------\n");
for( i = 0; i < lastlogObj->nodesetval->nodeNr; i++ ) {
@@ -382,11 +382,13 @@ void xmlPrint_lastlog(xmlXPathContext *xpathCTX, int verb, const char *xpath) {
defaultValue(xmlGetAttrValue(acpr->properties, "fwdestination"), "-")
);
#endif
- printf("\n");
+ if( (i+1) < lastlogObj->nodesetval->nodeNr ) {
+ printf("\n");
+ }
}
}
- printf(" --------------------------------------------------------------------"
+ printf("---------------------------------------------------------------------"
"----------\n");
xmlXPathFreeObject(lastlogObj);