aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/UriUtil.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/util/UriUtil.hxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/util/UriUtil.hxx b/src/util/UriUtil.hxx
index 753f6dedb..d93296b10 100644
--- a/src/util/UriUtil.hxx
+++ b/src/util/UriUtil.hxx
@@ -22,6 +22,8 @@
#include "Compiler.h"
+#include <string>
+
/**
* Checks whether the specified URI has a scheme in the form
* "scheme://".
@@ -48,11 +50,11 @@ uri_safe_local(const char *uri);
/**
* Removes HTTP username and password from the URI. This may be
* useful for displaying an URI without disclosing secrets. Returns
- * NULL if nothing needs to be removed, or if the URI is not
- * recognized.
+ * an empty string if nothing needs to be removed, or if the URI is
+ * not recognized.
*/
-gcc_malloc
-char *
+gcc_pure
+std::string
uri_remove_auth(const char *uri);
#endif