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:
parent
bbf740148d
commit
862dc68dbc
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue