Skip to content

Commit

Permalink
Merge pull request mongodb#99 from jeromelebel/b64_ntop_return_ssize_t
Browse files Browse the repository at this point in the history
b64_ntop should return ssize_t
  • Loading branch information
hanumantmk committed Oct 8, 2014
2 parents 4de17bf + db37ac5 commit 2c5262e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bson/b64_ntop.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ static const char Pad64 = '=';
* characters followed by one "=" padding character.
*/

static int
static ssize_t
b64_ntop (uint8_t const *src,
size_t srclength,
char *target,
Expand Down Expand Up @@ -180,5 +180,5 @@ b64_ntop (uint8_t const *src,
return -1;
}
target[datalength] = '\0'; /* Returned value doesn't count \0. */
return (int)datalength;
return datalength;
}

0 comments on commit 2c5262e

Please sign in to comment.