From: Mark Atwood Date: Sat, 22 Sep 2007 21:28:36 +0000 (-0700) Subject: remove WATCHPOINTs from memflush tool X-Git-Tag: 0.2~8^2~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=bafd8c284af480a26fbde5b04c4284e849211f0e;p=awesomized%2Flibmemcached remove WATCHPOINTs from memflush tool --- diff --git a/src/memflush.c b/src/memflush.c index 558abcaf..474fb47e 100644 --- a/src/memflush.c +++ b/src/memflush.c @@ -16,32 +16,24 @@ int main(int argc, char *argv[]) { memcached_st *memc; memcached_return rc; - WATCHPOINT; + options_parse(argc, argv); - WATCHPOINT; memc= memcached_init(NULL); - WATCHPOINT; if (opt_servers) parse_opt_servers(memc, opt_servers); - WATCHPOINT; rc = memcached_flush(memc, opt_expire); - WATCHPOINT; - if (rc != MEMCACHED_SUCCESS) { fprintf(stderr, "memflush: %s: memcache error %s\n", argv[optind], memcached_strerror(memc, rc)); } - WATCHPOINT; memcached_deinit(memc); - WATCHPOINT; free(opt_servers); - WATCHPOINT; return 0; }