X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Futilities.c;h=5d761e3c94729c03dca3931b005ec381f359abb0;hb=f5c167f523682cb08109842ce010b29e80fdf63d;hp=9ad6edcf90789310dea7d3c4da3abcc8dbb45ac1;hpb=17e0b84e30fe82f6a2a995484a502179c73906ea;p=awesomized%2Flibmemcached diff --git a/clients/utilities.c b/clients/utilities.c index 9ad6edcf..5d761e3c 100644 --- a/clients/utilities.c +++ b/clients/utilities.c @@ -1,3 +1,14 @@ +/* LibMemcached + * Copyright (C) 2006-2009 Brian Aker + * All rights reserved. + * + * Use and distribution licensed under the BSD license. See + * the COPYING file in the parent directory for full text. + * + * Summary: + * + */ + #include "libmemcached/common.h" #include #include @@ -7,7 +18,7 @@ long int timedif(struct timeval a, struct timeval b) { - register int us, s; + long us, s; us = (int)(a.tv_usec - b.tv_usec); us /= 1000; @@ -18,7 +29,7 @@ long int timedif(struct timeval a, struct timeval b) void version_command(const char *command_name) { - printf("%s v%u.%u\n", command_name, 1, 0); + printf("%s v%u.%u\n", command_name, 1U, 0U); exit(0); } @@ -28,7 +39,7 @@ static const char *lookup_help(memcached_options option) { case OPT_SERVERS: return("List which servers you wish to connect to."); case OPT_VERSION: return("Display the version of the application and then exit."); - case OPT_HELP: return("Diplay this message and then exit."); + case OPT_HELP: return("Display this message and then exit."); case OPT_VERBOSE: return("Give more details on the progression of the application."); case OPT_DEBUG: return("Provide output only useful for debugging."); case OPT_FLAG: return("Provide flag information for storage operation."); @@ -60,7 +71,7 @@ void help_command(const char *command_name, const char *description, { unsigned int x; - printf("%s v%u.%u\n\n", command_name, 1, 0); + printf("%s v%u.%u\n\n", command_name, 1U, 0U); printf("\t%s\n\n", description); printf("Current options. A '=' means the option takes a value.\n\n"); @@ -81,7 +92,7 @@ void help_command(const char *command_name, const char *description, void process_hash_option(memcached_st *memc, char *opt_hash) { uint64_t set; - memcached_return rc; + memcached_return_t rc; if (opt_hash == NULL) return;