Skip to content
Snippets Groups Projects
Commit a3dd09a1 authored by Zhang Huanjie's avatar Zhang Huanjie
Browse files

fix path

parent 88e2ad8b
No related branches found
No related tags found
No related merge requests found
......@@ -172,7 +172,7 @@ void getstat(void)
fclose(fp);
/* IP */
fp = fopen("/usr/src/ethudp/IP", "r");
fp = fopen("/etc/ethudp/IP", "r");
if ((fp != NULL) && (fgets(buf, MAXLEN, fp) != NULL)) {
ret = snprintf(sendbuf + len, MAXLEN - len, "ip=%s", buf);
if (ret > 0)
......@@ -182,7 +182,7 @@ void getstat(void)
fclose(fp);
/* GATE */
fp = fopen("/usr/src/ethudp/GATE", "r");
fp = fopen("/etc/ethudp/GATE", "r");
if ((fp != NULL) && (fgets(buf, MAXLEN, fp) != NULL)) {
ret = snprintf(sendbuf + len, MAXLEN - len, "gate=%s", buf);
if (ret > 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment