~yeban/libmemcached/todo-hosts.c-2

« back to all changes in this revision

Viewing changes to clients/memcp.c

  • Committer: Brian Aker
  • Date: 2011-03-17 21:45:08 UTC
  • Revision ID: brian@tangent.org-20110317214508-ogufz6pusakvcch0
Merge in updates to make sure exit/return is done properly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
      || (errno != 0 && val == 0))
64
64
  {
65
65
    *error= true;
66
 
    return 0;
 
66
    return EXIT_SUCCESS;
67
67
  }
68
68
 
69
69
  if (endptr == nptr)
70
70
  {
71
71
    *error= true;
72
 
    return 0;
 
72
    return EXIT_SUCCESS;
73
73
  }
74
74
 
75
75
  *error= false;
117
117
  if (!initialize_sasl(memc, opt_username, opt_passwd))
118
118
  {
119
119
    memcached_free(memc);
120
 
    return 1;
 
120
    return EXIT_FAILURE;
121
121
  }
122
122
 
123
123
  while (optind < argc)