diff options
author | Bryan Ischo <bryan@ischo.com> | 2008-07-12 12:08:34 +0000 |
---|---|---|
committer | Bryan Ischo <bryan@ischo.com> | 2008-07-12 12:08:34 +0000 |
commit | 26a9aad80885a9e8f65c6c37ca562fc7c6d5d4d3 (patch) | |
tree | 4a39519b24ad6b202ff447d46fa022b76640a7e4 /src/util.c | |
parent | 037783a33a3c2f02307511bdadd4c85486217a40 (diff) | |
download | ceph-libs3-26a9aad80885a9e8f65c6c37ca562fc7c6d5d4d3.tar.gz |
* Work in progress: put object now works
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |