@@ -121,7 +121,7 @@ class EnvironmentOptionsParser : public OptionsParser<EnvironmentOptions> {
121121 EnvironmentOptionsParser ();
122122 explicit EnvironmentOptionsParser (const DebugOptionsParser& dop)
123123 : EnvironmentOptionsParser() {
124- Insert (& dop, &EnvironmentOptions::get_debug_options);
124+ Insert (dop, &EnvironmentOptions::get_debug_options);
125125 }
126126};
127127
@@ -386,7 +386,7 @@ PerIsolateOptionsParser::PerIsolateOptionsParser(
386386 kAllowedInEnvironment );
387387#endif // NODE_REPORT
388388
389- Insert (& eop, &PerIsolateOptions::get_per_env_options);
389+ Insert (eop, &PerIsolateOptions::get_per_env_options);
390390}
391391
392392PerProcessOptionsParser::PerProcessOptionsParser (
@@ -496,7 +496,7 @@ PerProcessOptionsParser::PerProcessOptionsParser(
496496#endif
497497#endif
498498
499- Insert (& iop, &PerProcessOptions::get_per_isolate_options);
499+ Insert (iop, &PerProcessOptions::get_per_isolate_options);
500500}
501501
502502inline std::string RemoveBrackets (const std::string& host) {
@@ -510,7 +510,8 @@ inline int ParseAndValidatePort(const std::string& port,
510510 std::vector<std::string>* errors) {
511511 char * endptr;
512512 errno = 0 ;
513- const long result = strtol (port.c_str (), &endptr, 10 ); // NOLINT(runtime/int)
513+ const unsigned long result = // NOLINT(runtime/int)
514+ strtoul (port.c_str (), &endptr, 10 );
514515 if (errno != 0 || *endptr != ' \0 ' ||
515516 (result != 0 && result < 1024 ) || result > 65535 ) {
516517 errors->push_back (" must be 0 or in range 1024 to 65535." );
0 commit comments