* Summary:
*
*/
+#include "config.h"
-#include "libmemcached/common.h"
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
options_parse(argc, argv);
if (argc != 2)
- return 1;
+ return EXIT_FAILURE;
- value= strtol(argv[1], (char **) NULL, 10);
+ value= strtoul(argv[1], (char **) NULL, 10);
- if (value >= MEMCACHED_SUCCESS && value < MEMCACHED_MAXIMUM_RETURN)
+ if (value < MEMCACHED_MAXIMUM_RETURN)
{
printf("%s\n", memcached_strerror(NULL, (memcached_return_t)value));
}
else
{
fprintf(stderr, "Unknown Error Code\n");
- return 1;
+ return EXIT_FAILURE;
}
- return 0;
+ return EXIT_SUCCESS;
}