~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to extra/mysql_waitpid.c

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* Wait until a program dies */
17
17
 
18
 
#include <drizzled/global.h>
19
18
#include <mystrings/m_string.h>
20
19
#include <mysys/my_sys.h>
21
20
#include <mysys/my_getopt.h>
22
 
 
23
 
#include <stdio.h>
24
21
#include <signal.h>
25
22
#include <errno.h>
26
23
 
37
34
  {"help", 'I', "Synonym for -?.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0,
38
35
   0, 0, 0, 0, 0},
39
36
  {"verbose", 'v',
40
 
   "Be more verbose. Give a warning, if kill can't handle signal 0.",
 
37
   "Be more verbose. Give a warning, if kill can't handle signal 0.", 
41
38
   (char**) &verbose, (char**) &verbose, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
42
39
  {"version", 'V', "Print version information and exit.", 0, 0, 0,
43
40
   GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
44
41
  { 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
45
42
};
46
43
 
47
 
extern "C"
48
 
bool get_one_option(int optid, const struct my_option *, char *)
 
44
static bool
 
45
get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
 
46
               char *argument __attribute__((unused)))
49
47
{
50
48
  switch(optid) {
51
49
  case 'V':
57
55
  }
58
56
  return 0;
59
57
}
60
 
 
 
58
 
61
59
 
62
60
int main(int argc, char *argv[])
63
61
{