]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - string.c
Add some missing source code documentation.
[paraslash.git] / string.c
index 3c80d27cc6b6ad73a95392c17cdb041837ec6ba5..52003c4b49035c0075ff1ef51de150c4f9542379 100644 (file)
--- a/string.c
+++ b/string.c
@@ -292,9 +292,9 @@ __must_check __malloc char *para_homedir(void)
  *
  * \return The number of substrings found in \a args.
  */
-__must_check unsigned split_args(char *args, char *** const argv_ptr, const char *delim)
+unsigned split_args(char *args, char *** const argv_ptr, const char *delim)
 {
-       char *p = args;
+       char *p;
        char **argv;
        size_t n = 0, i, j;
 
@@ -587,6 +587,13 @@ int para_atoi32(const char *str, int32_t *value)
        return 1;
 }
 
+/**
+ * Compute the loglevel number from its name.
+ *
+ * \param txt The name of the loglevel (debug, info, ...).
+ *
+ * \return The numeric representation of the loglevel name.
+ */
 int get_loglevel_by_name(const char *txt)
 {
        if (!strcasecmp(txt, "debug"))