Changeset 71306 in vbox for trunk/src/VBox/NetworkServices/Dhcpd
- Timestamp:
- Mar 13, 2018 1:25:43 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 121244
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/Dhcpd/Config.cpp
r70836 r71306 20 20 #include <iprt/getopt.h> 21 21 #include <iprt/path.h> 22 #include <iprt/message.h> 22 23 #include <iprt/string.h> 23 24 … … 95 96 96 97 /* compatibility with old VBoxNetDHCP */ 97 static RTGETOPTDEF g_aCompatOptions[] =98 static const RTGETOPTDEF g_aCompatOptions[] = 98 99 { 99 100 { "--ip-address", 'i', RTGETOPT_REQ_IPV4ADDR }, … … 114 115 115 116 rc = RTGetOptInit(&State, argc, argv, 116 g_aCompatOptions, RT_ELEMENTS(g_aCompatOptions), 0,117 g_aCompatOptions, RT_ELEMENTS(g_aCompatOptions), 1, 117 118 RTGETOPTINIT_FLAGS_NO_STD_OPTS); 119 AssertRCReturn(rc, NULL); 118 120 119 121 std::unique_ptr<Config> config(new Config()); … … 162 164 config->m_enmTrunkType = kIntNetTrunkType_NetAdp; 163 165 else 166 { 167 RTMsgError("Unknown trunk type '%s'", Val.psz); 164 168 return NULL; 169 } 165 170 break; 166 171 … … 168 173 config->m_IPv4PoolLast = Val.IPv4Addr; 169 174 break; 175 176 case VINF_GETOPT_NOT_OPTION: 177 RTMsgError("%s: Unexpected command line argument", Val.psz); 178 return NULL; 179 180 default: 181 RTGetOptPrintError(rc, &Val); 182 return NULL; 170 183 } 171 184 }
Note:
See TracChangeset
for help on using the changeset viewer.