summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorBryan Ischo <bryan@ischo.com>2008-07-12 12:08:34 +0000
committerBryan Ischo <bryan@ischo.com>2008-07-12 12:08:34 +0000
commit26a9aad80885a9e8f65c6c37ca562fc7c6d5d4d3 (patch)
tree4a39519b24ad6b202ff447d46fa022b76640a7e4 /src/util.c
parent037783a33a3c2f02307511bdadd4c85486217a40 (diff)
downloadceph-libs3-26a9aad80885a9e8f65c6c37ca562fc7c6d5d4d3.tar.gz
* Work in progress: put object now works
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 72a19a2..9cf075c 100644
--- a/src/util.c
+++ b/src/util.c
@@ -36,7 +36,7 @@ static const char *hexG = "0123456789ABCDEF";
// checks out ok). Format characters are:
// d - is a digit
// anything else - is that character
-// Returns 0 if the string checks out, nonzero if it does not.
+// Returns nonzero the string checks out, zero if it does not.
static int checkString(const char *str, const char *format)
{
while (*format) {
@@ -96,7 +96,7 @@ int urlEncode(char *dest, const char *src, int maxSrcSize)
time_t parseIso8601Time(const char *str)
{
// Check to make sure that it has a valid format
- if (checkString(str, "dddd-dd-ddTdd:dd:dd")) {
+ if (!checkString(str, "dddd-dd-ddTdd:dd:dd")) {
return -1;
}