summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorjakob <jakob@memeware.net>2017-05-17 20:51:20 -0400
committerjakob <jakob@memeware.net>2017-05-17 20:51:20 -0400
commit1a386655395a4259a48108ed78c1f61d9b8ecbb4 (patch)
tree1164eb5b9a9e9eb0ba17900400988dc6485c8875 /src/cli.c
parentba4fad8c5a409dd0738bc09a95cbdebf360aa496 (diff)
Began checking all calls to malloc for NULL and improving documentation.
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/cli.c b/src/cli.c
index 78e0d88..dbb2f4f 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -39,8 +39,6 @@ static void parse_output_path(const char *optarg, struct params *p) {
}
-/* Updates the game field of `p` to properly reflect the game ID
- specified by the string, `optarg`. */
static void parse_game_id(const char *optarg, struct params *p) {
if (!strcmp(optarg, "nekopara_volume_0"))
p->game = NEKOPARA_VOLUME_0;
@@ -53,7 +51,6 @@ static void parse_game_id(const char *optarg, struct params *p) {
}
-/* Returns a params structure parsed from `argv`. */
struct params parse_args(int argc, char **argv) {
/* getopt maintains external state which needs to be reset each time
`parse_args` is called, otherwise strange things will occur. */
@@ -127,9 +124,3 @@ struct params parse_args(int argc, char **argv) {
return p;
}
-
-
-/* Frees allocated memory associated with `p`. */
-void params_free(struct params p) {
- free(p.out);
-}