nkiss

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/nkiss
Log | Files | Refs

commit 7e500069483c5587c6753fb072faf25eaaaea9f4
parent 56d6cc0cb951804ae404c53e9a4f1e084790a8c0
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Thu, 18 Feb 2021 20:21:43 -0600

cleanup formatting

Diffstat:
Mkiss.c | 16++++------------
Mpkg.c | 3++-
2 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/kiss.c b/kiss.c @@ -115,7 +115,8 @@ kiss_search(const char *kiss_path, char *pattern) } } -int main(int argc, char *argv[]) +int +main(int argc, char *argv[]) { char *kiss_path; @@ -132,20 +133,11 @@ int main(int argc, char *argv[]) kiss_list_names(&argv[2], argc-2); else kiss_list_all(); - - goto end; - } - - if (strcmp(argv[1], "search") == 0 && argc > 2) { + } else if (strcmp(argv[1], "search") == 0 && argc > 2) { kiss_search(kiss_path, argv[2]); - goto end; - } - - if (strcmp(argv[1], "download") == 0 && argc > 2) { + } else if (strcmp(argv[1], "download") == 0 && argc > 2) { kiss_download_names(kiss_path, &argv[2], argc-2); - goto end; } -end: return 0; } diff --git a/pkg.c b/pkg.c @@ -35,7 +35,8 @@ pkg_download(char *repo, char *name) } } -int pkg_sources(char *repo, char *name, struct source_t *sources) +int +pkg_sources(char *repo, char *name, struct source_t *sources) { FILE *sfile; char path[strlen(repo) + strlen(name) + 10];