Skip to content

Commit

Permalink
インデントなど調整
Browse files Browse the repository at this point in the history
  • Loading branch information
takamin committed Apr 27, 2015
1 parent b21884c commit f245c02
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions source/getopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ int getopt(int argc, char* const argv[],
static int postpone_count = 0;
static int nextchar = 0;
while(1) {
int c;
const char* optptr = 0;
int c;
const char* optptr = 0;
if(optind >= argc - postpone_count) {
break;
}
Expand Down Expand Up @@ -109,11 +109,12 @@ int getopt(int argc, char* const argv[],
optopt = c;
if(opterr) {
fprintf(stderr,
"%s: option requires an argument -- %c\n",
argv[0], c);
"%s: option requires an argument -- %c\n",
argv[0], c);
}
if(optstring[0] == ':'
|| (optstring[0] == '-' || optstring[0] == '+') && optstring[1] == ':')
if(optstring[0] == ':' ||
(optstring[0] == '-' || optstring[0] == '+') &&
optstring[1] == ':')
{
c = ':';
} else {
Expand Down

0 comments on commit f245c02

Please sign in to comment.