Changed output style and comments.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6510 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Waldemar Kornewald 2004-02-06 18:08:02 +00:00
parent a9087159ca
commit b917144621

View File

@ -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());