svn commit: r209072 - head/usr.sbin/sysinstall

Colin Percival cperciva at FreeBSD.org
Fri Jun 11 21:46:46 UTC 2010


Author: cperciva
Date: Fri Jun 11 21:46:45 2010
New Revision: 209072
URL: http://svn.freebsd.org/changeset/base/209072

Log:
  Clean up code by removing pre-C99 struct hack preprocessor magic.
  
  Approved by:	randi (maintainer)

Modified:
  head/usr.sbin/sysinstall/sysinstall.h

Modified: head/usr.sbin/sysinstall/sysinstall.h
==============================================================================
--- head/usr.sbin/sysinstall/sysinstall.h	Fri Jun 11 21:35:19 2010	(r209071)
+++ head/usr.sbin/sysinstall/sysinstall.h	Fri Jun 11 21:46:45 2010	(r209072)
@@ -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 */


More information about the svn-src-head mailing list