svn rev #23524: trunk/src/util/profile/
raeburn@MIT.EDU
raeburn at MIT.EDU
Sun Dec 27 19:21:20 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=23524
Commit By: raeburn
Log Message:
The "comment" field of prf_data_t was never actually set nor used, so
delete it and all references.
Changed Files:
U trunk/src/util/profile/prof_file.c
U trunk/src/util/profile/prof_int.h
Modified: trunk/src/util/profile/prof_file.c
===================================================================
--- trunk/src/util/profile/prof_file.c 2009-12-28 00:21:16 UTC (rev 23523)
+++ trunk/src/util/profile/prof_file.c 2009-12-28 00:21:20 UTC (rev 23524)
@@ -185,7 +185,6 @@
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 @@
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 @@
}
if (data->root)
profile_free_node(data->root);
- if (data->comment)
- free(data->comment);
data->magic = 0;
k5_mutex_destroy(&data->lock);
free(data);
Modified: trunk/src/util/profile/prof_int.h
===================================================================
--- trunk/src/util/profile/prof_int.h 2009-12-28 00:21:16 UTC (rev 23523)
+++ trunk/src/util/profile/prof_int.h 2009-12-28 00:21:20 UTC (rev 23524)
@@ -35,7 +35,6 @@
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;
More information about the cvs-krb5
mailing list