summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-11-01 22:54:32 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-11-01 22:54:32 +0900
commit31189b1222a8612ed4e7513c70906fc5e883bfe3 (patch)
tree68ecf72d0fc305d75b48ad9a214c61a8b3fd1bac /src/util.h
parent7db480b024c64c855809396071158aba92b4f5ea (diff)
Made return type of util::parse_content_disposition ssize_t
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.h b/src/util.h
index 778bfdaf..744be965 100644
--- a/src/util.h
+++ b/src/util.h
@@ -312,9 +312,9 @@ std::string iso8859p1ToUtf8(const std::string& src);
// succeeds, or -1. If there is enough room to store filename in
// |dest|, this function returns -1. If this function returns -1, the
// |dest|, |*charsetp| and |*charsetlenp| are undefined.
-int parse_content_disposition(char *dest, size_t destlen,
- const char **charsetp, size_t *charsetlenp,
- const char *in, size_t len);
+ssize_t parse_content_disposition(char *dest, size_t destlen,
+ const char **charsetp, size_t *charsetlenp,
+ const char *in, size_t len);
std::string getContentDispositionFilename(const std::string& header);