~flier-lu/libmemcached/win32-vs2008

« back to all changes in this revision

Viewing changes to libmemcached/storage.c

  • Committer: Flier Lu
  • Date: 2011-01-12 07:11:09 UTC
  • Revision ID: flier.lu@gmail.com-20110112071109-odi0zjs4i07bzsbm
replace %zu instead of %lu

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
    if (cas)
106
106
    {
107
107
      write_length= (size_t) snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE,
108
 
                                      "%s %.*s%.*s %u %llu %zu %llu%s\r\n",
 
108
                                      "%s %.*s%.*s %u %llu %lu %llu%s\r\n",
109
109
                                      storage_op_string(verb),
110
110
                                      (int)ptr->prefix_key_length,
111
111
                                      ptr->prefix_key,
112
112
                                      (int)key_length, key, flags,
113
 
                                      (unsigned long long)expiration, value_length,
 
113
                                      (unsigned long long)expiration, 
 
114
                                      (unsigned long)value_length,
114
115
                                      (unsigned long long)cas,
115
116
                                      (ptr->flags.no_reply) ? " noreply" : "");
116
117
    }
134
135
 
135
136
      write_length= (size_t)(buffer_ptr - buffer);
136
137
      write_length+= (size_t) snprintf(buffer_ptr, MEMCACHED_DEFAULT_COMMAND_SIZE,
137
 
                                       "%u %llu %zu%s\r\n",
 
138
                                       "%u %llu %lu%s\r\n",
138
139
                                       flags,
139
 
                                       (unsigned long long)expiration, value_length,
 
140
                                       (unsigned long long)expiration, 
 
141
                                       (unsigned long)value_length,
140
142
                                       ptr->flags.no_reply ? " noreply" : "");
141
143
    }
142
144