~mm-yuhu/gearmand/server-funcs

« back to all changes in this revision

Viewing changes to examples/reverse_client.c

  • Committer: Eric Day
  • Date: 2009-04-01 01:49:18 UTC
  • Revision ID: eday@oddments.org-20090401014918-daa2o25hbnbbrgfk
Some last minute cleanup for 0.4 release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
int main(int argc, char *argv[])
24
24
{
25
 
  char c;
 
25
  int c;
26
26
  char *host= NULL;
27
27
  in_port_t port= 0;
28
28
  gearman_return_t ret;
32
32
  uint32_t numerator;
33
33
  uint32_t denominator;
34
34
 
35
 
  while ((c = getopt(argc, argv, "h:p:")) != EOF)
 
35
  while ((c = getopt(argc, argv, "h:p:")) != -1)
36
36
  {
37
37
    switch(c)
38
38
    {