diff options
| author | yuzu-eva <cafebabe@disroot.org> | 2025-03-24 22:42:06 +0100 |
|---|---|---|
| committer | yuzu-eva <cafebabe@disroot.org> | 2025-03-24 22:42:06 +0100 |
| commit | 8e92c848d90145821374aac51b24ba1777a9fc12 (patch) | |
| tree | 4723c921f19a4b0b0f1e0b1a5016fae17d592b9d /main.c | |
| parent | 3493e554d8c7e7ef2e1b1f7065b58bd02145d216 (diff) | |
fixed some whitespace
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -141,7 +141,7 @@ entry_t *get_entry(char **argv, int pos) fprintf(stderr, "ERROR: allocation failed\n"); exit(EXIT_FAILURE); } - + strncpy(res->name, argv[pos], sizeof(res->name) - 1); res->name[sizeof(res->name) - 1] = '\0'; if (argv[pos + 1]) { @@ -188,7 +188,7 @@ void edit_entry(const entry_t *entry) char *old_ep = getfield(tmp, 2); tmp = strdup(line); char *old_status = getfield(tmp, 3); - + if (strncasecmp(old_name, entry->name, strlen(entry->name)) == 0) { fprintf(fp_new, "%s,%s,%s\n", old_name, entry->episode, entry->status); entry_found = 1; @@ -242,7 +242,7 @@ int main(int argc, char **argv) } entry_t *entry = NULL; - + switch (mode) { case MATCH_MODE: check_args(argc, 3); |
