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:
@@ -5,9 +5,9 @@
|
|||||||
// Copyright (c) 2003 Waldemar Kornewald, [email protected]
|
// Copyright (c) 2003 Waldemar Kornewald, [email protected]
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <ctype.h>
|
#include <cctype>
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
#include <driver_settings.h>
|
#include <driver_settings.h>
|
||||||
|
|
||||||
@@ -85,8 +85,10 @@ show(ppp_interface_filter filter = PPP_REGISTERED_INTERFACES)
|
|||||||
int32 count;
|
int32 count;
|
||||||
interface_id *interfaces = manager.Interfaces(&count, filter);
|
interface_id *interfaces = manager.Interfaces(&count, filter);
|
||||||
|
|
||||||
if(!interfaces)
|
if(!interfaces) {
|
||||||
|
fprintf(stderr, "Error: Could not get interfaces information!\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
ppp_interface_info_t info;
|
ppp_interface_info_t info;
|
||||||
PPPInterface interface;
|
PPPInterface interface;
|
||||||
|
|||||||
Reference in New Issue
Block a user