summaryrefslogtreecommitdiffstats
path: root/src/util/profile/prof_set.c
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2009-10-31 00:48:38 +0000
committerTom Yu <tlyu@mit.edu>2009-10-31 00:48:38 +0000
commit02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b (patch)
tree61b9147863cd8be3eff63903dc36cae168254bd5 /src/util/profile/prof_set.c
parent162ab371748cba0cc6f172419bd6e71fa04bb878 (diff)
downloadkrb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.tar.gz
krb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.tar.xz
krb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.zip
make mark-cstyle
make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/profile/prof_set.c')
-rw-r--r--src/util/profile/prof_set.c37
1 files changed, 18 insertions, 19 deletions
diff --git a/src/util/profile/prof_set.c b/src/util/profile/prof_set.c
index 85f228630..a08bfd757 100644
--- a/src/util/profile/prof_set.c
+++ b/src/util/profile/prof_set.c
@@ -7,7 +7,7 @@
* In the future it may be necessary to modify this public interface,
* or possibly add higher level functions to support this correctly.
*
- * WARNING: We're not yet doing locking yet, either.
+ * WARNING: We're not yet doing locking yet, either.
*
*/
@@ -74,15 +74,15 @@ static errcode_t rw_setup(profile_t profile)
}
-/*
- * Delete or update a particular child node
- *
+/*
+ * Delete or update a particular child node
+ *
* ADL - 2/23/99, rewritten TYT 2/25/99
*/
errcode_t KRB5_CALLCONV
profile_update_relation(profile_t profile, const char **names,
const char *old_value, const char *new_value)
-{
+{
errcode_t retval;
struct profile_node *section, *node;
void *state;
@@ -91,7 +91,7 @@ profile_update_relation(profile_t profile, const char **names,
retval = rw_setup(profile);
if (retval)
return retval;
-
+
if (names == 0 || names[0] == 0 || names[1] == 0)
return PROF_BAD_NAMESET;
@@ -123,18 +123,18 @@ profile_update_relation(profile_t profile, const char **names,
if (retval == 0)
profile->first_file->data->flags |= PROFILE_FILE_DIRTY;
k5_mutex_unlock(&profile->first_file->data->lock);
-
+
return retval;
}
-/*
+/*
* Clear a particular all of the relations with a specific name.
- *
+ *
* TYT - 2/25/99
*/
errcode_t KRB5_CALLCONV
profile_clear_relation(profile_t profile, const char **names)
-{
+{
errcode_t retval;
struct profile_node *section, *node;
void *state;
@@ -143,7 +143,7 @@ profile_clear_relation(profile_t profile, const char **names)
retval = rw_setup(profile);
if (retval)
return retval;
-
+
if (names == 0 || names[0] == 0 || names[1] == 0)
return PROF_BAD_NAMESET;
@@ -167,29 +167,29 @@ profile_clear_relation(profile_t profile, const char **names)
} while (state);
profile->first_file->data->flags |= PROFILE_FILE_DIRTY;
-
+
return 0;
}
-/*
+/*
* Rename a particular section; if the new_section name is NULL,
* delete it.
- *
+ *
* ADL - 2/23/99, rewritten TYT 2/25/99
*/
errcode_t KRB5_CALLCONV
profile_rename_section(profile_t profile, const char **names,
const char *new_name)
-{
+{
errcode_t retval;
struct profile_node *section, *node;
void *state;
const char **cpp;
-
+
retval = rw_setup(profile);
if (retval)
return retval;
-
+
if (names == 0 || names[0] == 0 || names[1] == 0)
return PROF_BAD_NAMESET;
@@ -242,7 +242,7 @@ profile_add_relation(profile_t profile, const char **names,
retval = rw_setup(profile);
if (retval)
return retval;
-
+
if (names == 0 || names[0] == 0 || names[1] == 0)
return PROF_BAD_NAMESET;
@@ -283,4 +283,3 @@ profile_add_relation(profile_t profile, const char **names,
k5_mutex_unlock(&profile->first_file->data->lock);
return 0;
}
-