X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwireless.c;h=2e597f37c8e42b1b41ad715034d585217789089a;hb=7f07c55bac640c7a50d516248a3152235a14af59;hp=5552be640c7896263fb53297cd187fc42b678594;hpb=196f5bd17880d91ba0da33a8f5f6168d039cfa0c;p=collectd.git diff --git a/src/wireless.c b/src/wireless.c index 5552be64..2e597f37 100644 --- a/src/wireless.c +++ b/src/wireless.c @@ -86,12 +86,11 @@ static int wireless_read(void) { int numfields; int devices_found; - int len; + size_t len; /* there are a variety of names for the wireless device */ if ((fh = fopen(WIRELESS_PROC_FILE, "r")) == NULL) { - char errbuf[1024]; - WARNING("wireless: fopen: %s", sstrerror(errno, errbuf, sizeof(errbuf))); + WARNING("wireless: fopen: %s", STRERRNO); return -1; }