diff options
| author | yuzu-eva <cafebabe@disroot.org> | 2025-04-12 08:39:13 +0200 |
|---|---|---|
| committer | yuzu-eva <cafebabe@disroot.org> | 2025-04-12 08:39:13 +0200 |
| commit | 5aa349d6229806ad78b083fed3997164bd3721ae (patch) | |
| tree | d32b2063769df0e540ff5164b33c84a7e6493c9a /main.c | |
| parent | 56c355574d29546bbd5676d94dff48c8631a9fec (diff) | |
combined the enums into one
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -8,7 +8,7 @@ const char *filepath = ".local/share/sqlite"; const char *filename = "library.db"; typedef struct { - target_e target; + args_e target; char *name; char *author; char *value; @@ -30,7 +30,7 @@ void print_help(void) entry_t *set_entry(entry_t *entry, int argc, char **argv) { - entry->target = str2enum_target(argv[2]); + entry->target = str2enum(argv[2]); entry->name = argv[3]; if (argc == 5) { entry->value = argv[4]; @@ -50,9 +50,9 @@ int main(int argc, char **argv) exit(69); } - mode_e mode; + args_e mode; entry_t *entry = malloc(sizeof(entry_t)); - mode = str2enum_mode(argv[1]); + mode = str2enum(argv[1]); char fullpath[PATH_MAX]; snprintf(fullpath, PATH_MAX, "%s/%s/%s", getenv("HOME"), filepath, filename); |
