--- embedtools/src/dwds.c 2010/11/02 02:12:49 1.1.2.12 +++ embedtools/src/dwds.c 2010/11/02 02:25:46 1.1.2.13 @@ -104,7 +104,7 @@ RtMsg(struct dwds_if **wds, struct rt_msghdr *msg, siz CFG(szIdent), STRSIZ, DWDS_NAME); /* delete state file ... */ v = cfg_GetAttribute(&cfg, CFG("dwds"), CFG("state_dir")); - if (v && strtol((char*) v, NULL, 0)) { + if (v) { memset(szCmd, 0, STRSIZ); snprintf(szCmd, MAXPATHLEN, "%s/%s-%s-%s", (char*) v, szName, ether_ntoa(&bssid), szIdent); @@ -148,7 +148,7 @@ RtMsg(struct dwds_if **wds, struct rt_msghdr *msg, siz CFG(szIdent), STRSIZ, DWDS_NAME); /* create state file ... */ v = cfg_GetAttribute(&cfg, CFG("dwds"), CFG("state_dir")); - if (v && strtol((char*) v, NULL, 0)) { + if (v) { memset(szCmd, 0, MAXPATHLEN); snprintf(szCmd, MAXPATHLEN, "%s/%s-%s-%s", (char*) v, (*wds)->if_name, ether_ntoa(&bssid), szIdent);