Skip to content

Commit

Permalink
Minor tidies.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnezang committed Dec 24, 2011
1 parent 9c26484 commit 5891bc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SDURLCache.m
Expand Up @@ -196,7 +196,7 @@
};

static NSDate *_parseHTTPDate(const char *buf, size_t bufLen) {
const char *parseBuf = buf, *p = parseBuf, *pe = p + bufLen, *eof = pe;
const char *p = buf, *pe = p + bufLen, *eof = pe;
int parsed = 0, cs = 1;
NSDate *date = NULL;

Expand All @@ -217,7 +217,7 @@

if(_httpDate_trans_actions[_trans] == 0) { goto _again; }

switch ( _httpDate_trans_actions[_trans] ) {
switch(_httpDate_trans_actions[_trans]) {
case 6: gdate.year = gdate.year * 10 + ((*p) - '0'); break;
case 18: gdate.year = gdate.year * 10 + ((*p) - '0'); gdate.year += 1900; break;
case 10: gdate.month = 1; break;
Expand Down

0 comments on commit 5891bc4

Please sign in to comment.