small fixes
This commit is contained in:
parent
708adbfe8a
commit
18b6469d71
2 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,8 @@ sun_SOURCES = sun_main.c sun.c
|
||||||
sun_LDADD = -lm
|
sun_LDADD = -lm
|
||||||
|
|
||||||
if GEONAMES_SUPPORT
|
if GEONAMES_SUPPORT
|
||||||
bin_PROGRAMS += geonames
|
TESTS = geonames
|
||||||
|
check_PROGRAMS = geonames
|
||||||
|
|
||||||
geonames_SOURCES = geonames_main.c geonames.c
|
geonames_SOURCES = geonames_main.c geonames.c
|
||||||
geonames_LDADD = $(DEPS_GEONAMES_LIBS)
|
geonames_LDADD = $(DEPS_GEONAMES_LIBS)
|
||||||
|
|
|
@ -140,7 +140,7 @@ int main(int argc, char *argv[]) {
|
||||||
/* parse command line arguments */
|
/* parse command line arguments */
|
||||||
while (1) {
|
while (1) {
|
||||||
int optidx;
|
int optidx;
|
||||||
int c = getopt_long(argc-1, argv+1, "hvt:d:f:a:o:q:z:", long_options, &optidx);
|
int c = getopt_long(argc, argv, "hvt:d:f:a:o:q:z:", long_options, &optidx);
|
||||||
|
|
||||||
/* detect the end of the options. */
|
/* detect the end of the options. */
|
||||||
if (c == -1) break;
|
if (c == -1) break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue