diff options
author | unknown <monty@hundin.mysql.fi> | 2002-06-29 00:16:15 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-06-29 00:16:15 +0300 |
commit | 370016677af391c58c03a0eca198936b3ac5d382 (patch) | |
tree | 4ad1a20d59a1252f985bb184bc8e51fc1988c045 /sql/gen_lex_hash.cc | |
parent | 7311cbe7dee5980d921ec43177fd268783eb18e2 (diff) | |
download | mariadb-git-370016677af391c58c03a0eca198936b3ac5d382.tar.gz |
Added support for semaphores in mysys.
(Needed for query cache for systems which doesn't have native semaphores)
mysys/my_getopt.c:
Safety fix.
mysys/my_winsem.c:
Shange all semaphore code to be uniform
mysys/thr_rwlock.c:
cleanup
sql/gen_lex_hash.cc:
Error message if wrong number of arguments.
sql/slave.cc:
R
Diffstat (limited to 'sql/gen_lex_hash.cc')
-rw-r--r-- | sql/gen_lex_hash.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/gen_lex_hash.cc b/sql/gen_lex_hash.cc index a4f0791d105..776b6840b45 100644 --- a/sql/gen_lex_hash.cc +++ b/sql/gen_lex_hash.cc @@ -373,7 +373,7 @@ static my_bool get_one_option(int optid, const struct my_option *opt __attribute__((unused)), char *argument __attribute__((unused))) { - switch(optid) { + switch (optid) { case 'v': opt_verbose++; break; @@ -398,8 +398,9 @@ static int get_options(int argc, char **argv) if (argc >= 1) { + fprintf(stderr,"%s: Too many arguments\n", my_progname); usage(0); - exit(1); + exit(1); } return(0); } |