summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2010-06-11 21:46:45 +0000
committercperciva <cperciva@FreeBSD.org>2010-06-11 21:46:45 +0000
commit3b47f9b5e5e2ef86c9523bdcea9d5d9ae49e8949 (patch)
tree571c4ba261e7220ef3b0b984555e9ece1748f6ac /usr.sbin/sysinstall
parentf7b96744b6277bc4e7b027b455e5500a8272fa32 (diff)
downloadFreeBSD-src-3b47f9b5e5e2ef86c9523bdcea9d5d9ae49e8949.zip
FreeBSD-src-3b47f9b5e5e2ef86c9523bdcea9d5d9ae49e8949.tar.gz
Clean up code by removing pre-C99 struct hack preprocessor magic.
Approved by: randi (maintainer)
Diffstat (limited to 'usr.sbin/sysinstall')
-rw-r--r--usr.sbin/sysinstall/sysinstall.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/usr.sbin/sysinstall/sysinstall.h b/usr.sbin/sysinstall/sysinstall.h
index ff412c1..ba364c7 100644
--- a/usr.sbin/sysinstall/sysinstall.h
+++ b/usr.sbin/sysinstall/sysinstall.h
@@ -228,13 +228,7 @@ typedef struct _dmenu {
char *prompt; /* Our prompt */
char *helpline; /* Line of help at bottom */
char *helpfile; /* Help file for "F1" */
-#if (__STDC_VERSION__ >= 199901L) || (__GNUC__ >= 3)
dialogMenuItem items[]; /* Array of menu items */
-#elif __GNUC__
- dialogMenuItem items[0]; /* Array of menu items */
-#else
-#error "Create hack for C89 and K&R compilers."
-#endif
} DMenu;
/* An rc.conf variable */
OpenPOWER on IntegriCloud