~mordred/libmemcached/merge-vs-work

« back to all changes in this revision

Viewing changes to libmemcached/parse.c

  • Committer: Monty Taylor
  • Date: 2011-02-13 18:47:03 UTC
  • Revision ID: mordred@inaugust.com-20110213184703-usxdc2h4do3bnxhx
Build for Visual Studio.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
  end_ptr= server_strings + strlen(server_strings);
23
23
 
24
 
  for (begin_ptr= server_strings, string= index(server_strings, ','); 
 
24
  for (begin_ptr= server_strings, string= strchr(server_strings, ','); 
25
25
       begin_ptr != end_ptr; 
26
 
       string= index(begin_ptr, ','))
 
26
       string= strchr(begin_ptr, ','))
27
27
  {
28
28
    char buffer[HUGE_STRING_LEN];
29
29
    char *ptr, *ptr2;
44
44
      begin_ptr= end_ptr;
45
45
    }
46
46
 
47
 
    ptr= index(buffer, ':');
 
47
    ptr= strchr(buffer, ':');
48
48
 
49
49
    if (ptr)
50
50
    {
54
54
 
55
55
      port= (in_port_t) strtoul(ptr, (char **)NULL, 10);
56
56
 
57
 
      ptr2= index(ptr, ' ');
 
57
      ptr2= strchr(ptr, ' ');
58
58
      if (! ptr2)
59
 
        ptr2= index(ptr, ':');
 
59
        ptr2= strchr(ptr, ':');
60
60
      if (ptr2)
61
61
      {
62
62
        ptr2++;