Quantcast
Channel: Tomato Firmware
Viewing all articles
Browse latest Browse all 5181

Opinions from any programming/coding experts?

$
0
0
While messing with the source on Toastman 1.28.9007.8 exploring options for a different issue I came across this section in network.c of rc's source:


Code:
 if ((f = fopen("/etc/hosts", "w"))) {
 101                 fprintf(f, "127.0.0.1  localhost\n");
 102                 if ((s = nvram_get("lan_ipaddr")) && (*s))
 103                         fprintf(f, "%s  %s %s-lan\n", s, nvram_safe_get("lan_hostname"), nvram_safe_get("lan_hostname"));
 104                 if ((s =...

Opinions from any programming/coding experts?

Viewing all articles
Browse latest Browse all 5181