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