projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Updated memcached.h so that it contains only its structure.
[awesomized/libmemcached]
/
clients
/
utilities.c
diff --git
a/clients/utilities.c
b/clients/utilities.c
index e7d8df94b067302c8ca2095501d2f5fa03c6e1ab..5d761e3c94729c03dca3931b005ec381f359abb0 100644
(file)
--- 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 <stdio.h>
#include <ctype.h>
#include "libmemcached/common.h"
#include <stdio.h>
#include <ctype.h>
@@
-7,7
+18,7
@@
long int timedif(struct timeval a, struct timeval b)
{
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;
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)
{
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, 1
U, 0U
);
exit(0);
}
exit(0);
}
@@
-60,7
+71,7
@@
void help_command(const char *command_name, const char *description,
{
unsigned int x;
{
unsigned int x;
- printf("%s v%u.%u\n\n", command_name, 1
, 0
);
+ printf("%s v%u.%u\n\n", command_name, 1
U, 0U
);
printf("\t%s\n\n", description);
printf("Current options. A '=' means the option takes a value.\n\n");
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;
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;
if (opt_hash == NULL)
return;