Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1489)

Unified Diff: third_party/crashpad/crashpad/third_party/getopt/getopt.cc

Issue 2804713002: Update Crashpad to b4095401639ebe2ad33169e5c1d994065cbff1b8 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/crashpad/crashpad/third_party/getopt/getopt.cc
diff --git a/third_party/crashpad/crashpad/third_party/getopt/getopt.cc b/third_party/crashpad/crashpad/third_party/getopt/getopt.cc
index 137218b999acb858e411a9859f7f3e3f62feb574..7dfd888ce46b494bc258e9d63a6657588b1b2e13 100644
--- a/third_party/crashpad/crashpad/third_party/getopt/getopt.cc
+++ b/third_party/crashpad/crashpad/third_party/getopt/getopt.cc
@@ -310,16 +310,17 @@ getopt_internal (int argc, char **argv, char *shortopts,
}
return (optopt = '?');
}
- has_arg = ((cp[1] == ':')
- ? ((cp[2] == ':') ? OPTIONAL_ARG : required_argument) : no_argument);
- possible_arg = argv[optind] + optwhere + 1;
- optopt = *cp;
+ has_arg = ((cp[1] == ':') ? ((cp[2] == ':') ? optional_argument
+ : required_argument)
+ : no_argument);
+ possible_arg = argv[optind] + optwhere + 1;
+ optopt = *cp;
}
/* get argument and reset optwhere */
arg_next = 0;
switch (has_arg)
{
- case OPTIONAL_ARG:
+ case optional_argument:
if (*possible_arg == '=')
possible_arg++;
if (*possible_arg != '\0')

Powered by Google App Engine
This is Rietveld 408576698