From b91714462193c754e6b4fb0413960331fdaa163c Mon Sep 17 00:00:00 2001 From: Waldemar Kornewald Date: Fri, 6 Feb 2004 18:08:02 +0000 Subject: [PATCH] Changed output style and comments. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6510 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/bin/pppconfig/pppconfig.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/apps/bin/pppconfig/pppconfig.cpp b/src/apps/bin/pppconfig/pppconfig.cpp index fd13c51cfc..defe678ded 100644 --- a/src/apps/bin/pppconfig/pppconfig.cpp +++ b/src/apps/bin/pppconfig/pppconfig.cpp @@ -67,13 +67,15 @@ show(ppp_interface_filter filter = PPP_REGISTERED_INTERFACES) interface.GetInterfaceInfo(&info); printf("\n"); - // type and name (if it has one) + // type and unit (if it has one) if(info.info.if_unit >= 0) { printf("Type: Visible\n"); printf("\tInterface: ppp%ld\n", info.info.if_unit); } else printf("Type: Hidden\n"); + printf("\tName: %s\n", info.info.name); + // ID printf("\tID: %ld\n", interface.ID()); @@ -233,8 +235,6 @@ static status_t show_details(const char *name) { - // Name may either be an interface name (ppp0, etc.) or an interface ID. - if(!name || strlen(name) == 0) return -1; @@ -260,6 +260,8 @@ show_details(const char *name) } else printf("Type: Hidden\n"); + printf("Name: %s\n", info.info.name); + // ID printf("ID: %ld\n", interface.ID());