From: Lawrence S. <ljs...@us...> - 2021-06-19 00:39:56
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via 8a8efb7aee698605b0f230ed9641f5bbc22d04e0 (commit) via a9728519f8a7e6c63f39636fa105b7739e823992 (commit) from eda687f373dbc489b235f6536883c20471e0b882 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 8a8efb7aee698605b0f230ed9641f5bbc22d04e0 Merge: eda687f a972851 Author: Lawrence Sebald <ljs...@us...> Date: Fri Jun 18 20:39:32 2021 -0400 Merge pull request #56 from Tchan0/NaomiNetBootUsage naominetboot.c: call usage() commit a9728519f8a7e6c63f39636fa105b7739e823992 Author: Tchan0 <617...@us...> Date: Fri Jun 18 20:52:28 2021 +0200 call usage() usage() is defined but not called yet ----------------------------------------------------------------------- Summary of changes: utils/naominetboot/naominetboot.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/naominetboot/naominetboot.c b/utils/naominetboot/naominetboot.c index 983e64b..1b97107 100644 --- a/utils/naominetboot/naominetboot.c +++ b/utils/naominetboot/naominetboot.c @@ -295,6 +295,11 @@ int main(int argc, char *argv[]) { memset(&naomi_addr, 0, sizeof(struct sockaddr_in)); + if(argc < 5) { + usage(argv[0]); + exit(EXIT_FAILURE); + } + /* Parse arguments. */ while((c = getopt(argc, argv, ":t:x:a")) != -1) { switch(c) { hooks/post-receive -- A pseudo Operating System for the Dreamcast. |