Cleanup comments and bad indent
[lttng-tools.git] / ltt-sessiond / utils.c
index 5b8e31b8d0b4e44623360fa68fa67288ba4a923d..6b22d9693c693e59bfd389d273b9d1aee5dc2974 100644 (file)
 #include "utils.h"
 
 /*
- *  get_home_dir
+ * Return pointer to home directory path using the env variable HOME.
  *
- *  Return pointer to home directory path using the env variable HOME.
- *  No home, NULL is returned.
+ * No home, NULL is returned.
  */
 const char *get_home_dir(void)
 {
@@ -41,9 +40,7 @@ const char *get_home_dir(void)
 }
 
 /*
- *  mkdir_recursive
- *
- *  Create recursively directory using the FULL path.
+ * Create recursively directory using the FULL path.
  */
 int mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid)
 {
@@ -76,9 +73,8 @@ int mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid)
                                }
                        } else if (ret == 0) {
                                /*
-                                * We created the directory. Set its
-                                * ownership to the user/group
-                                * specified.
+                                * We created the directory. Set its ownership to the
+                                * user/group specified.
                                 */
                                ret = chown(tmp, uid, gid);
                                if (ret < 0) {
@@ -96,8 +92,8 @@ int mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid)
                ret = -errno;
        } else if (ret == 0) {
                /*
-                * We created the directory. Set its ownership to the
-                * user/group specified.
+                * We created the directory. Set its ownership to the user/group
+                * specified.
                 */
                ret = chown(tmp, uid, gid);
                if (ret < 0) {
This page took 0.030834 seconds and 4 git commands to generate.