projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fixed error in lack of pointer found (Tim Bunce discovered)
[awesomized/libmemcached]
/
src
/
memcp.c
diff --git
a/src/memcp.c
b/src/memcp.c
index 09d7e9119b0ec75b30085efe6f11c8eff248ecf8..f1054ea9d1518d2a969afcf5b32cead3099f02a1 100644
(file)
--- a/
src/memcp.c
+++ b/
src/memcp.c
@@
-25,7
+25,7
@@
void options_parse(int argc, char *argv[]);
static int opt_verbose= 0;
static char *opt_servers= NULL;
static int opt_method= OPT_SET;
static int opt_verbose= 0;
static char *opt_servers= NULL;
static int opt_method= OPT_SET;
-static uint
16
_t opt_flags= 0;
+static uint
32
_t opt_flags= 0;
static time_t opt_expires= 0;
int main(int argc, char *argv[])
static time_t opt_expires= 0;
int main(int argc, char *argv[])
@@
-187,7
+187,7
@@
void options_parse(int argc, char *argv[])
opt_servers= strdup(optarg);
break;
case OPT_FLAG: /* --flag */
opt_servers= strdup(optarg);
break;
case OPT_FLAG: /* --flag */
- opt_flags= (uint
16
_t)strtol(optarg, (char **)NULL, 16);
+ opt_flags= (uint
32
_t)strtol(optarg, (char **)NULL, 16);
break;
case OPT_EXPIRE: /* --expire */
opt_expires= (time_t)strtoll(optarg, (char **)NULL, 10);
break;
case OPT_EXPIRE: /* --expire */
opt_expires= (time_t)strtoll(optarg, (char **)NULL, 10);