Match the return type of getopt().

getopt() returns an int, not a char.

Bug: chromium:1287175
Change-Id: I9866112f7420b39ea470d9f04435ca328ab37ce0
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3387609
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
danakj 2022-01-13 13:56:52 -05:00 committed by Mark Mentovai
parent bbf740148d
commit 862dc68dbc

View file

@ -331,7 +331,7 @@ static void SetupOptions(int argc, const char* argv[], Options* options) {
options->force = NO;
extern int optind;
char ch;
int ch;
while ((ch = getopt(argc, (char* const*)argv, "p:k:t:c:i:hf?")) != -1) {
switch (ch) {