changeset 93:cc0a6789f92a

Trim a redundant definition that confuses older compilers. (Regression testing against Red Hat 9.)
author Rob Landley <rob@landley.net>
date Fri, 02 Feb 2007 10:53:55 -0500
parents 154070b2b28d
children 884c03c29f21
files main.c toys/toylist.h
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main.c	Thu Feb 01 17:39:14 2007 -0500
+++ b/main.c	Fri Feb 02 10:53:55 2007 -0500
@@ -22,6 +22,7 @@
 // global context for this applet.
 
 struct toy_context toys;
+union toy_union toy;
 char toybuf[4096];
 
 struct toy_list *toy_find(char *name)
--- a/toys/toylist.h	Thu Feb 01 17:39:14 2007 -0500
+++ b/toys/toylist.h	Fri Feb 02 10:53:55 2007 -0500
@@ -32,7 +32,7 @@
 // "E:jJ:L:m:O:"
 #define MKE2FS_OPTSTRING "<1>2Fnqm#N#i#b#"
 
-union toy_union {
+extern union toy_union {
 	struct df_data df;
 	struct mke2fs_data mke2fs;
 } toy;