~yeban/libmemcached/todo-host.c

« back to all changes in this revision

Viewing changes to libmemcached/protocol/ascii_handler.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:
34
34
 
35
35
  if (len == 0 || len > 240 || (*c != '\0' && *c != '\r' && iscntrl(*c)))
36
36
  {
37
 
    return 0;
 
37
    return EXIT_SUCCESS;
38
38
  }
39
39
 
40
40
  return len;
558
558
  {
559
559
    /* Keep on reading */
560
560
    recover_tokenize_command(start, *end);
561
 
    return 1;
 
561
    return EXIT_FAILURE;
562
562
  }
563
563
 
564
564
  void *data= (*end) + 1;
658
658
 
659
659
  *end += nbytes + 2;
660
660
 
661
 
  return 0;
 
661
  return EXIT_SUCCESS;
662
662
}
663
663
 
664
664
static int process_cas_command(memcached_protocol_client_st *client,