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