-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch Options to options_t, use hardref instead of strdup() to preve…
…nt memory leaks.
- Loading branch information
Showing
2 changed files
with
15 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#ifndef _options_h | ||
#define _options_h | ||
|
||
struct Options { | ||
struct options_s { | ||
char *outfile; | ||
char *errfile; | ||
char *target; | ||
int json; | ||
char **child_args; | ||
}; | ||
|
||
typedef struct Options Options; | ||
typedef struct options_s options_t; | ||
|
||
struct Options *Options_parse(int argc, char *argv[]); | ||
options_t options_parse(int argc, char *argv[]); | ||
|
||
#endif |