summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2016-01-06 09:24:38 +0000
committertb <tb@openbsd.org>2016-01-06 09:24:38 +0000
commit65e3e2c50a43b240a6190b142ad4dc0522cf962e (patch)
treee7e738e0f56e72572790e468939363cbc849e1fb
parentEnsure that iwn(4) always uses a CCK rate as last fallback in the firmware's (diff)
downloadwireguard-openbsd-65e3e2c50a43b240a6190b142ad4dc0522cf962e.tar.xz
wireguard-openbsd-65e3e2c50a43b240a6190b142ad4dc0522cf962e.zip
Use return instead of exit from main.
ok mestre@
-rw-r--r--games/phantasia/map.c4
-rw-r--r--games/phantasia/setup.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/games/phantasia/map.c b/games/phantasia/map.c
index 147ff9e800b..130064672d7 100644
--- a/games/phantasia/map.c
+++ b/games/phantasia/map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: map.c,v 1.2 2001/01/28 23:41:47 niklas Exp $ */
+/* $OpenBSD: map.c,v 1.3 2016/01/06 09:24:38 tb Exp $ */
/* $NetBSD: map.c,v 1.2 1995/03/24 03:58:58 cgd Exp $ */
#define minusminus plusplus
@@ -125,7 +125,7 @@ main()
move(-1380, 1180);
closepl();
- exit(0);
+ return 0;
}
plusplus(s, x, y) /* draw strings in plus plus quadrant */
diff --git a/games/phantasia/setup.c b/games/phantasia/setup.c
index cfeab03ee00..6d330fea2c7 100644
--- a/games/phantasia/setup.c
+++ b/games/phantasia/setup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: setup.c,v 1.14 2015/12/26 00:26:39 mestre Exp $ */
+/* $OpenBSD: setup.c,v 1.15 2016/01/06 09:24:38 tb Exp $ */
/* $NetBSD: setup.c,v 1.4 1995/04/24 12:24:41 cgd Exp $ */
/*
@@ -173,8 +173,7 @@ main(argc, argv)
}
}
- exit(0);
- /*NOTREACHED*/
+ return 0;
}
/* */
/************************************************************************