aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2009-12-28 00:21:20 +0000
committerKen Raeburn <raeburn@mit.edu>2009-12-28 00:21:20 +0000
commitf19964ea0efffde8bedd5ed43d6a63b7bd20a222 (patch)
tree01e6f5ab71d41505524e87a96e592bd40f4dae5d /src/util
parent780b10fb74f2c2acf8bc86bf8d503a8adaf2a07f (diff)
downloadkrb5-f19964ea0efffde8bedd5ed43d6a63b7bd20a222.zip
krb5-f19964ea0efffde8bedd5ed43d6a63b7bd20a222.tar.gz
krb5-f19964ea0efffde8bedd5ed43d6a63b7bd20a222.tar.bz2
The "comment" field of prf_data_t was never actually set nor used, so
delete it and all references. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23524 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util')
-rw-r--r--src/util/profile/prof_file.c7
-rw-r--r--src/util/profile/prof_int.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/src/util/profile/prof_file.c b/src/util/profile/prof_file.c
index cbc274d..bf25b2e 100644
--- a/src/util/profile/prof_file.c
+++ b/src/util/profile/prof_file.c
@@ -185,7 +185,6 @@ profile_make_prf_data(const char *filename)
assert(fcopy == d->filespec);
strlcpy(fcopy, filename, flen + 1);
d->refcount = 1;
- d->comment = NULL;
d->magic = PROF_MAGIC_FILE_DATA;
d->root = NULL;
d->next = NULL;
@@ -341,10 +340,6 @@ errcode_t profile_update_file_data_locked(prf_data_t data)
profile_free_node(data->root);
data->root = 0;
}
- if (data->comment) {
- free(data->comment);
- data->comment = 0;
- }
#else
/*
* If we don't have the stat() call, assume that our in-core
@@ -590,8 +585,6 @@ static void profile_free_file_data(prf_data_t data)
}
if (data->root)
profile_free_node(data->root);
- if (data->comment)
- free(data->comment);
data->magic = 0;
k5_mutex_destroy(&data->lock);
free(data);
diff --git a/src/util/profile/prof_int.h b/src/util/profile/prof_int.h
index 9dc7d94..541a318 100644
--- a/src/util/profile/prof_int.h
+++ b/src/util/profile/prof_int.h
@@ -35,7 +35,6 @@ struct _prf_data_t {
unsigned long frac_ts; /* fractional part of timestamp, if any */
int flags; /* r/w, dirty */
int upd_serial; /* incremented when data changes */
- char *comment;
size_t fslen;