summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorbbergeron <[email protected]>2024-04-03 17:32:01 -0400
committerbbergeron <[email protected]>2024-04-03 17:32:01 -0400
commitc1cb78d574c0429aa5e3ff3a2b3886e4bc153212 (patch)
treebf68806bcbddcafafc015b28c25550ea457eeecc /common.c
Reset Git repo and use a pseudonym to sign commits
I used to sign my commits with my real name and my personal email address, which I wanted scrubbed off the "B." pseudosphere. Re-creating a new git repository was safer than simpler than re-writing the history (although the latter could've also worked but, oh well).
Diffstat (limited to 'common.c')
-rw-r--r--common.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/common.c b/common.c
new file mode 100644
index 0000000..683428d
--- /dev/null
+++ b/common.c
@@ -0,0 +1,13 @@
+#include <stdlib.h>
+#include "common.h"
+
+void stateinfo_free(struct StateInfo *state_info)
+{
+ int i;
+
+ for (i = 0; i < state_info->song_count; i ++)
+ free(state_info->next_songs[i].file);
+
+ free(state_info->current_song);
+ free(state_info->next_songs);
+}