aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacob janzen <53062115+JacobJanzen@users.noreply.github.com>2024-02-14 19:45:43 -0600
committerGitHub <noreply@github.com>2024-02-15 01:45:43 +0000
commit762ce2792750dfc662364372f308b03b91aa925c (patch)
tree91025d0cdfc1477c71a3d96afdc9376ebb6cdba8 /src
parent4c337161da57dfbab4f031220014c881c4cf1b62 (diff)
add readme; name project (#4)
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am4
-rw-r--r--src/main.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index b6114f2..f08ba63 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,6 @@
-bin_PROGRAMS = main
+bin_PROGRAMS = urlg
-main_SOURCES = \
+urlg_SOURCES = \
cavegen.c \
cavegen.h \
display.c \
diff --git a/src/main.c b/src/main.c
index 086a093..758fc92 100644
--- a/src/main.c
+++ b/src/main.c
@@ -93,6 +93,10 @@ int main(void)
display_t *disp = display_init();
+ if (!disp) {
+ return EXIT_FAILURE;
+ }
+
// create the map
struct map map;
create_cave(&map);