Updated with Twitter's memcached_server_error() function.
[m6w6/libmemcached] / clients / memcp.c
index d6864b1ad2dd18405419bb121cf779dafcdf25c8..778beaf783c10298201666453d86ed34ea698ba0 100644 (file)
@@ -91,7 +91,7 @@ int main(int argc, char *argv[])
 
     if (opt_verbose) 
     {
-      static char *opstr[] = { "set", "add", "replace" };
+      static const char *opstr[] = { "set", "add", "replace" };
       printf("op: %s\nsource file: %s\nlength: %zu\n"
             "key: %s\nflags: %x\nexpires: %llu\n",
             opstr[opt_method - OPT_SET], argv[optind], (size_t)sbuf.st_size,