Added an error report.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5158 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
52fad5f56b
commit
0868fe5619
@ -5,9 +5,9 @@
|
||||
// Copyright (c) 2003 Waldemar Kornewald, Waldemar.Kornewald@web.de
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cctype>
|
||||
#include <String.h>
|
||||
#include <driver_settings.h>
|
||||
|
||||
@ -85,8 +85,10 @@ show(ppp_interface_filter filter = PPP_REGISTERED_INTERFACES)
|
||||
int32 count;
|
||||
interface_id *interfaces = manager.Interfaces(&count, filter);
|
||||
|
||||
if(!interfaces)
|
||||
if(!interfaces) {
|
||||
fprintf(stderr, "Error: Could not get interfaces information!\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
ppp_interface_info_t info;
|
||||
PPPInterface interface;
|
||||
|
Loading…
Reference in New Issue
Block a user