Changes in uspace/app/dnscfg/dnscfg.c [b7fd2a0:8d2dd7f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/dnscfg/dnscfg.c
rb7fd2a0 r8d2dd7f2 55 55 } 56 56 57 static errno_t dnscfg_set_ns(int argc, char *argv[])57 static int dnscfg_set_ns(int argc, char *argv[]) 58 58 { 59 59 if (argc < 1) { … … 72 72 73 73 inet_addr_t addr; 74 errno_t rc = inet_addr_parse(srv_addr, &addr, NULL);74 int rc = inet_addr_parse(srv_addr, &addr, NULL); 75 75 76 76 if (rc != EOK) { … … 89 89 } 90 90 91 static errno_t dnscfg_unset_ns(void)91 static int dnscfg_unset_ns(void) 92 92 { 93 93 inet_addr_t addr; 94 94 inet_addr_any(&addr); 95 95 96 errno_t rc = dnsr_set_srvaddr(&addr);96 int rc = dnsr_set_srvaddr(&addr); 97 97 if (rc != EOK) { 98 98 printf("%s: Failed unsetting server address (%s)\n", … … 104 104 } 105 105 106 static errno_t dnscfg_print(void)106 static int dnscfg_print(void) 107 107 { 108 108 inet_addr_t addr; 109 errno_t rc = dnsr_get_srvaddr(&addr);109 int rc = dnsr_get_srvaddr(&addr); 110 110 if (rc != EOK) { 111 111 printf("%s: Failed getting DNS server address.\n", NAME);
Note:
See TracChangeset
for help on using the changeset viewer.