Changeset 758
- Timestamp:
- 03/18/08 17:21:28 (5 months ago)
- Files:
-
- branches/binary/server/memcached.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/binary/server/memcached.c
r757 r758 980 980 size_t nkey; 981 981 int i; 982 uint64_t *response Buf = (uint64_t*) c->wbuf + BIN_INCR_HDR_LEN;982 uint64_t *response_buf = (uint64_t*) c->wbuf + BIN_INCR_HDR_LEN; 983 983 984 984 assert(c != NULL); … … 1008 1008 tmpbuf[INCR_MAX_STORAGE_LEN]=0x00; 1009 1009 add_delta(it, c->cmd == CMD_INCR, delta, tmpbuf); 1010 *response Buf=swap64(strtoull(tmpbuf, NULL, 10));1011 1012 write_bin_response(c, response Buf, BIN_INCR_HDR_LEN, INCR_RES_LEN);1010 *response_buf=swap64(strtoull(tmpbuf, NULL, 10)); 1011 1012 write_bin_response(c, response_buf, BIN_INCR_HDR_LEN, INCR_RES_LEN); 1013 1013 item_remove(it); /* release our reference */ 1014 1014 } else { … … 1016 1016 /* Save some room for the response */ 1017 1017 assert(c->wsize > BIN_INCR_HDR_LEN + BIN_DEL_HDR_LEN); 1018 *response Buf=swap64(initial);1018 *response_buf=swap64(initial); 1019 1019 it = item_alloc(key, nkey, 0, realtime(exptime), 1020 1020 INCR_MAX_STORAGE_LEN); … … 1022 1022 1023 1023 if(store_item(it, NREAD_SET)) { 1024 write_bin_response(c, response Buf, BIN_INCR_HDR_LEN,1024 write_bin_response(c, response_buf, BIN_INCR_HDR_LEN, 1025 1025 INCR_RES_LEN); 1026 1026 } else {
