More cleanup, Linux build fixes.
This commit is contained in:
parent
f23a43fb81
commit
6fc70f7c16
7 changed files with 59 additions and 324 deletions
|
@ -176,7 +176,7 @@ public:
|
|||
const unsigned long pid = (unsigned long)getpid();
|
||||
|
||||
// Get all device names
|
||||
Utils::ztsnprintf(fn,sizeof(fn),"/proc/%lu/net/dev",pid);
|
||||
OSUtils::ztsnprintf(fn,sizeof(fn),"/proc/%lu/net/dev",pid);
|
||||
FILE *procf = fopen(fn,"r");
|
||||
if (procf) {
|
||||
while (fgets(tmp,sizeof(tmp),procf)) {
|
||||
|
@ -192,7 +192,7 @@ public:
|
|||
}
|
||||
|
||||
// Get IPv6 addresses (and any device names we don't already know)
|
||||
Utils::ztsnprintf(fn,sizeof(fn),"/proc/%lu/net/if_inet6",pid);
|
||||
OSUtils::ztsnprintf(fn,sizeof(fn),"/proc/%lu/net/if_inet6",pid);
|
||||
procf = fopen(fn,"r");
|
||||
if (procf) {
|
||||
while (fgets(tmp,sizeof(tmp),procf)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue