aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2023-12-02 11:47:11 -0900
committerDavid M. Syzdek <david@syzdek.net>2023-12-02 11:47:11 -0900
commit8d2ac4b11da5e340029d45c5644d05ad27d07922 (patch)
tree684ec4faeca40394c6407b1563dc344f8db38b66
parentebba9b019d887e35d730c6c87489316d3e08bcda (diff)
downloadcorset-8d2ac4b11da5e340029d45c5644d05ad27d07922.tar.gz
corset-8d2ac4b11da5e340029d45c5644d05ad27d07922.tar.bz2
corset-8d2ac4b11da5e340029d45c5644d05ad27d07922.tar.xz
corset-8d2ac4b11da5e340029d45c5644d05ad27d07922.zip
libcorset: renaming arguments to corset_destroy()
-rw-r--r--include/corset.h2
-rw-r--r--lib/libcorset/lmemory.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/include/corset.h b/include/corset.h
index 3d6b5ff..5c9f4b1 100644
--- a/include/corset.h
+++ b/include/corset.h
@@ -148,7 +148,7 @@ corset_debug_config(
148 148
149_CORSET_F void 149_CORSET_F void
150corset_destroy( 150corset_destroy(
151 corset_t * cnf ); 151 corset_t * ch );
152 152
153 153
154_CORSET_F int 154_CORSET_F int
diff --git a/lib/libcorset/lmemory.c b/lib/libcorset/lmemory.c
index b8080c3..2b403b2 100644
--- a/lib/libcorset/lmemory.c
+++ b/lib/libcorset/lmemory.c
@@ -118,14 +118,14 @@ corset_defaults(
118 118
119void 119void
120corset_destroy( 120corset_destroy(
121 corset_t * cnf ) 121 corset_t * ch )
122{ 122{
123 if (!(cnf)) 123 if (!(ch))
124 return; 124 return;
125 125
126 if ((cnf->cor_pidfile)) 126 if ((ch->cor_pidfile))
127 free(cnf->cor_pidfile); 127 free(ch->cor_pidfile);
128 free(cnf); 128 free(ch);
129 129
130 return; 130 return;
131} 131}