projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Temp save for Monty.
[awesomized/libmemcached]
/
example
/
memcached_light.c
diff --git
a/example/memcached_light.c
b/example/memcached_light.c
index 741ef82e002b863c4679a50fcab015dd7a8e4b8a..c4495b5946802eca82b3e4ae11ada8573d9bf9ac 100644
(file)
--- a/
example/memcached_light.c
+++ b/
example/memcached_light.c
@@
-40,6
+40,7
@@
#include <libmemcached/protocol_handler.h>
#include <libmemcached/byteorder.h>
#include "storage.h"
#include <libmemcached/protocol_handler.h>
#include <libmemcached/byteorder.h>
#include "storage.h"
+#include "memcached_light.h"
extern memcached_binary_protocol_callback_st interface_v0_impl;
extern memcached_binary_protocol_callback_st interface_v1_impl;
extern memcached_binary_protocol_callback_st interface_v0_impl;
extern memcached_binary_protocol_callback_st interface_v1_impl;
@@
-229,6
+230,12
@@
int main(int argc, char **argv)
int cmd;
memcached_binary_protocol_callback_st *interface= &interface_v0_impl;
int cmd;
memcached_binary_protocol_callback_st *interface= &interface_v0_impl;
+ /*
+ * We need to initialize the handlers manually due to a bug in the
+ * warnings generated by struct initialization in gcc (all the way up to 4.4)
+ */
+ initialize_interface_v0_handler();
+
while ((cmd= getopt(argc, argv, "v1p:?")) != EOF)
{
switch (cmd) {
while ((cmd= getopt(argc, argv, "v1p:?")) != EOF)
{
switch (cmd) {