sstrncpy(vl.plugin, "wireless", sizeof(vl.plugin));
sstrncpy(vl.plugin_instance, plugin_instance, sizeof(vl.plugin_instance));
sstrncpy(vl.type, type, sizeof(vl.type));
sstrncpy(vl.plugin, "wireless", sizeof(vl.plugin));
sstrncpy(vl.plugin_instance, plugin_instance, sizeof(vl.plugin_instance));
sstrncpy(vl.type, type, sizeof(vl.type));
static double wireless_percent_to_power(double quality) {
assert((quality >= 0.0) && (quality <= 100.0));
static double wireless_percent_to_power(double quality) {
assert((quality >= 0.0) && (quality <= 100.0));
/* there are a variety of names for the wireless device */
if ((fh = fopen(WIRELESS_PROC_FILE, "r")) == NULL) {
/* there are a variety of names for the wireless device */
if ((fh = fopen(WIRELESS_PROC_FILE, "r")) == NULL) {
/* If no wireless devices are present return an error, so the plugin
* code delays our read function. */
if (devices_found == 0)
/* If no wireless devices are present return an error, so the plugin
* code delays our read function. */
if (devices_found == 0)