]> granicus.if.org Git - nethack/commitdiff
unclutter dlb's main()
authorPatR <rankin@nethack.org>
Thu, 26 Aug 2021 09:25:51 +0000 (02:25 -0700)
committerPatR <rankin@nethack.org>
Thu, 26 Aug 2021 09:25:51 +0000 (02:25 -0700)
util/dlb_main.c

index aab866d642c84419431a8f67deca88ace700c3f8..cb523078a1b9f91d6dccb21aeaf48a3752e3787d 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.7 dlb_main.c      $NHDT-Date: 1596498258 2020/08/03 23:44:18 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.14 $ */
+/* NetHack 3.7 dlb_main.c      $NHDT-Date: 1629969943 2021/08/26 09:25:43 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.18 $ */
 /* Copyright (c) Kenneth Lorber, Bethesda, Maryland, 1993. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -137,7 +137,7 @@ fopen_datafile(const char *filename, const char *mode)
     return fopen(filename, mode);
 }
 
-       char *
+char *
 eos(char *s)
 {
     while (*s)
@@ -145,16 +145,14 @@ eos(char *s)
     return s;
 }
 
-int
-main(int argc 
-#ifndef DLB
-     UNUSED 
-#endif
-     , char **argv
-#ifndef DLB
-     UNUSED
+#ifdef DLB
+#define UNUSED_if_no_DLB /*empty*/
+#else
+#define UNUSED_if_no_DLB UNUSED
 #endif
-     )
+
+int
+main(int argc UNUSED_if_no_DLB, char **argv UNUSED_if_no_DLB)
 {
 #ifdef DLB
 #ifdef DLBLIB