summaryrefslogtreecommitdiff
path: root/src/settings/plugins/keyfile/nms-keyfile-utils.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-09-28 14:50:01 +0200
committerAntonio Cardace <acardace@redhat.com>2020-09-28 16:07:52 +0200
commit740b092fda3d5f45102422f22884c88ea6c42858 (patch)
tree5a049cc10c99efb5ee39606b8b1d0893a9f46db3 /src/settings/plugins/keyfile/nms-keyfile-utils.c
parent328fb90f3e0d4e35975aff63944ac0412d7893a5 (diff)
downloadNetworkManager-ac/clang-format.tar.gz
format: replace tabs for indentation in code commentsac/clang-format
sed -i \ -e 's/^'$'\t'' \*/ */g' \ -e 's/^'$'\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t\t\t\t'' \*/ */g' \ $(git ls-files -- '*.[hc]')
Diffstat (limited to 'src/settings/plugins/keyfile/nms-keyfile-utils.c')
-rw-r--r--src/settings/plugins/keyfile/nms-keyfile-utils.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/settings/plugins/keyfile/nms-keyfile-utils.c b/src/settings/plugins/keyfile/nms-keyfile-utils.c
index a5aab64ce8..42d4615873 100644
--- a/src/settings/plugins/keyfile/nms-keyfile-utils.c
+++ b/src/settings/plugins/keyfile/nms-keyfile-utils.c
@@ -52,7 +52,7 @@ nms_keyfile_nmmeta_check_filename(const char *filename, guint *out_uuid_len)
if (!NM_IN_SET(len, 36, 40)) {
/* the remaining part of the filename has not the right length to
- * contain a UUID (according to nm_utils_is_uuid()). */
+ * contain a UUID (according to nm_utils_is_uuid()). */
return NULL;
}
@@ -81,7 +81,7 @@ nms_keyfile_nmmeta_filename(const char *dirname, const char *uuid, gboolean temp
temporary ? "~" : "")
>= sizeof(filename)) {
/* valid uuids are limited in length (nm_utils_is_uuid). The buffer should always
- * be large enough. */
+ * be large enough. */
nm_assert_not_reached();
}
@@ -151,7 +151,7 @@ nms_keyfile_nmmeta_read(const char * dirname,
if (!loaded_path && !shadowed_storage) {
/* if there is no useful information in the file, it is the same as if
- * the file is not present. Signal failure. */
+ * the file is not present. Signal failure. */
return FALSE;
}
@@ -240,7 +240,7 @@ nms_keyfile_nmmeta_write(const char *dirname,
f = nm_utils_file_is_in_path(loaded_path, dirname);
if (f) {
/* @loaded_path points to a file directly in @dirname.
- * Don't use absolute paths. */
+ * Don't use absolute paths. */
loaded_path = f;
}
}
@@ -275,8 +275,8 @@ nms_keyfile_nmmeta_write(const char *dirname,
}
} else {
/* we only have the "loaded_path" to store. That is commonly used for the tombstones to
- * link to /dev/null. A symlink is sufficient to store that amount of information.
- * No need to bother with a keyfile. */
+ * link to /dev/null. A symlink is sufficient to store that amount of information.
+ * No need to bother with a keyfile. */
if (symlink(loaded_path, full_filename_tmp) != 0) {
errsv = -NM_ERRNO_NATIVE(errno);
full_filename_tmp[strlen(full_filename_tmp) - 1] = '\0';