]> git.tuebingen.mpg.de Git - dss.git/commitdiff
Assorted typo fixes in comments.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 3 Jan 2015 16:34:48 +0000 (16:34 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 6 Jan 2015 19:55:32 +0000 (20:55 +0100)
exec.c
file.c
snap.c
str.c

diff --git a/exec.c b/exec.c
index c08ef392dc064aac09d7f2aa57ba3f295551ef83..920ea0e2e9086bee1b5d82e72a8f051ad32efd3a 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -50,7 +50,7 @@ void dss_exec(pid_t *pid, const char *file, char *const *const args)
  * Exec the command given as a command line.
  *
  * \param pid Will hold the pid of the created process upon return.
- * \param cmdline Holds the command and its arguments, seperated by spaces.
+ * \param cmdline Holds the command and its arguments, separated by spaces.
  *
  * This function uses fork/exec to create a new process.
  *
diff --git a/file.c b/file.c
index ef7cd528680ee03c021e8cbe2bc1ab6a2434084c..84944082960055e272e942aa40a760b5709eb875 100644 (file)
--- a/file.c
+++ b/file.c
@@ -23,7 +23,7 @@
  * Call a function for each subdirectory of the current working directory.
  *
  * \param dirname The directory to traverse.
- * \param func The function to call for each subdirecrtory.
+ * \param func The function to call for each subdirectory.
  * \param private_data Pointer to an arbitrary data structure.
  *
  * For each top-level directory under \a dirname, the supplied function \a func is
diff --git a/snap.c b/snap.c
index 7c16d2e870b8e4e918a1486ab801bf31f1344c47..2ec195653c8ce65091b31f512010326649387bf1 100644 (file)
--- a/snap.c
+++ b/snap.c
@@ -84,7 +84,7 @@ static int is_snapshot(const char *dirname, int64_t now, int unit_interval,
        }
        if (!strcmp(dash + 1, "incomplete.being_deleted")) {
                s->completion_time = -1;
-               s->flags = SS_BEING_DELETED; /* mot cpmplete, being deleted */
+               s->flags = SS_BEING_DELETED; /* not complete, being deleted */
                goto success;
        }
        tmp = dash + 1;
diff --git a/str.c b/str.c
index df706ef497dd04234a050ce5a1ecb2f0dee77175..ff8f02a4846af402c71b8a2818f2db7fceedfde8 100644 (file)
--- a/str.c
+++ b/str.c
@@ -173,7 +173,7 @@ __must_check __printf_1_2 __malloc char *make_message(const char *fmt, ...)
 /**
  * Get the home directory of the current user.
  *
- * \return A dynammically allocated string that must be freed by the caller. If
+ * \return A dynamically allocated string that must be freed by the caller. If
  * the home directory could not be found, this function returns "/tmp".
  */
 __must_check __malloc char *get_homedir(void)
@@ -214,7 +214,7 @@ int dss_atoi64(const char *str, int64_t *value)
 /**
  * Get the logname of the current user.
  *
- * \return A dynammically allocated string that must be freed by the caller. On
+ * \return A dynamically allocated string that must be freed by the caller. On
  * errors, the string "unknown user" is returned, i.e. this function never
  * returns \p NULL.
  *
@@ -233,7 +233,7 @@ __must_check __malloc char *dss_logname(void)
  * \param argv_ptr Pointer to the list of substrings.
  * \param delim Delimiter.
  *
- * This function modifies \a args by replacing each occurance of \a delim by
+ * This function modifies \a args by replacing each occurrence of \a delim by
  * zero. A \p NULL-terminated array of pointers to char* is allocated dynamically
  * and these pointers are initialized to point to the broken-up substrings
  * within \a args. A pointer to this array is returned via \a argv_ptr.