From 1a386655395a4259a48108ed78c1f61d9b8ecbb4 Mon Sep 17 00:00:00 2001 From: jakob Date: Wed, 17 May 2017 20:51:20 -0400 Subject: Began checking all calls to malloc for NULL and improving documentation. --- src/cli.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/cli.c') 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); -} -- cgit v1.3