
From dave@fly.cc.fer.hr Tue Oct  6 08:15:56 1998
Date: Mon, 5 Oct 1998 01:18:47 +0200
From: Drazen Kacar <dave@fly.cc.fer.hr>
To: emil@obsession.se
Subject: Gentoo on Solaris

My friend and I tried to compile gentoo 0.9.10 on Solaris 2.6.
It needed some tweaking and eventually we got the executable which
worked. But it complained about gentoorc supplied in the distribution
and, even worse, it tried to use GNU file(1) which I don't have
installed on my system. That looked like this:

	{fly}~/gentoo-0.9.10> gentoo
	**CONFIG: Version of config file (0.9.7) doesn't match program version (0.9.10) - beware!
	**CONFIG: Unknown config node 'UserCommands'
	
	** WARNING **: invalid cast from `(unknown)' to `GtkWidget'
	
	** WARNING **: file gtkwidget.c: line 1251: "GTK_IS_WIDGET (widget)"
	cannot open -
	usage: file [-h] [-m mfile] [-f ffile] file ...
       	file [-h] [-m mfile] -f ffile
       	file -c [-m mfile]
	cannot open -
	usage: file [-h] [-m mfile] [-f ffile] file ...
       	file [-h] [-m mfile] -f ffile
       	file -c [-m mfile]
	
	** ERROR **: sigsegv caught
	{fly}~/gentoo-0.9.10> which file
	/bin/file
	{fly}~/gentoo-0.9.10> which -a file
	/bin/file
	/usr/bin/file
	/usr/ucb/file

However, we invested some time into tweaking the sources and we'd
like to spare other unfortunate creatures, so you'll get the unified diff
which will enable gentoo to compile on any POSIX system with ANSI C
compiler. It probably won't compile on Linux any more, but that's what
ifdefs are for.

Do with it as you please.


diff -x Makefile -ru gentoo-0.9.10/cfg_dirpane.c newgentoo/cfg_dirpane.c
--- gentoo-0.9.10/cfg_dirpane.c	Sat Oct  3 12:18:07 1998
+++ newgentoo/cfg_dirpane.c	Mon Oct  5 00:25:01 1998
@@ -200,7 +200,7 @@
 {
 	char		*mtext[] = {"Left Pane", "Right Pane", NULL},
 			*btext[] = {"Swap", "Copy To Other", "Copy From Other"};
-	void		*bhand[] = {evt_swap_click, evt_toother_click, evt_fromother_click};
+	gint (*bhand[])(GtkWidget *, gpointer) = {evt_swap_click, evt_toother_click, evt_fromother_click};
 	GtkWidget	*menu;
 	int		i;
 
@@ -289,7 +289,7 @@
 			fmt->width = 16;
 			fmt->just = GTK_JUSTIFY_CENTER;
 			break;
-		default:		/* Warning suppressor. */
+		default:;		/* Warning suppressor. */
 	}
 }
 
@@ -494,7 +494,7 @@
 			type = ET_DATE;
 		case DPC_TYPE:
 			break;
-		default:		/* Warning suppressor. */
+		default:;		/* Warning suppressor. */
 	}
 	edit->extype = type;
 	if(type != ET_NONE)
@@ -593,7 +593,7 @@
 				break;
 			case DPC_TYPE:
 				break;
-			default:	/* Warning suppressor. */
+			default:;	/* Warning suppressor. */
 		}
 	}
 
@@ -830,7 +830,7 @@
 {
 	int	i;
 	char	*title[] = {"Title", "Content"};
-	void	*bhandler[] = { evt_sclist_edit, evt_sclist_drop, evt_sclist_up, evt_sclist_down };
+	void    *bhandler[] = { (void *)evt_sclist_edit, (void *)evt_sclist_drop, (void *)evt_sclist_up, (void *)evt_sclist_down };
 
 	if((page->slabel = gtk_label_new("Selected Content Types")) != NULL)
 	{
@@ -1187,7 +1187,7 @@
 			break;
 		case DPC_TYPE:
 			break;
-		default:		/* Warning suppressor. */
+		default:;		/* Warning suppressor. */
 	}
 	xml_put_node_close(out, "DPExtra");
 }
@@ -1295,7 +1295,7 @@
 			break;
 		case DPC_TYPE:
 			break;
-		default:		/* Warning suppressor. */
+		default:;		/* Warning suppressor. */
 	}
 }
 
diff -x Makefile -ru gentoo-0.9.10/cfg_styles.c newgentoo/cfg_styles.c
--- gentoo-0.9.10/cfg_styles.c	Sat Oct  3 12:18:07 1998
+++ newgentoo/cfg_styles.c	Mon Oct  5 00:30:36 1998
@@ -1103,7 +1103,7 @@
 	{
 		page->aprop[i].override = gtk_check_button_new_with_label(aplab[i]);
 		gtk_signal_connect(GTK_OBJECT(page->aprop[i].override), "clicked", GTK_SIGNAL_FUNC(evt_ap_override_changed), (gpointer) page);
-		gtk_object_set_user_data(GTK_OBJECT(page->aprop[i].override), (gpointer) PRTP_ACTN_DEFAULT + i);
+		gtk_object_set_user_data(GTK_OBJECT(page->aprop[i].override), (char *) PRTP_ACTN_DEFAULT + i);
 		gtk_table_attach(GTK_TABLE(page->aptable), page->aprop[i].override, 0, 1, i, i+1,  GTK_FILL,0,0,0);
 		gtk_widget_show(page->aprop[i].override);
 		page->aprop[i].frame = gtk_frame_new(NULL);
@@ -1115,7 +1115,7 @@
 		gtk_table_attach(GTK_TABLE(page->aptable), page->aprop[i].frame, 1, 2, i, i+1, GTK_EXPAND|GTK_FILL,0,0,0);
 		gtk_widget_show(page->aprop[i].frame);
 		page->aprop[i].edit  = gtk_button_new_with_label("Edit...");
-		gtk_object_set_user_data(GTK_OBJECT(page->aprop[i].edit), (gpointer) PRTP_ACTN_DEFAULT + i);
+		gtk_object_set_user_data(GTK_OBJECT(page->aprop[i].edit), (char *) PRTP_ACTN_DEFAULT + i);
 		gtk_signal_connect(GTK_OBJECT(page->aprop[i].edit), "clicked", GTK_SIGNAL_FUNC(evt_ap_edit_clicked), (gpointer) page);
 		gtk_table_attach(GTK_TABLE(page->aptable), page->aprop[i].edit, 2, 3, i, i+1,  GTK_FILL,0,0,0);
 		gtk_widget_show(page->aprop[i].edit);
diff -x Makefile -ru gentoo-0.9.10/cfg_types.c newgentoo/cfg_types.c
--- gentoo-0.9.10/cfg_types.c	Sat Oct  3 12:18:07 1998
+++ newgentoo/cfg_types.c	Mon Oct  5 00:29:22 1998
@@ -39,7 +39,7 @@
 	GtkWidget	*ithbox;	/* Hbox for the 'type' id row. */
 	GtkWidget	*itype[7];	/* Radio buttons for the type selection. Boring. */
 	GSList		*itlist;	/* Radio button grouping list. */
-	umode_t		*itmode;	/* The actual mode values (e.g. S_IFREG etc) for types. */
+	mode_t		*itmode;	/* The actual mode values (e.g. S_IFREG etc) for types. */
 	GtkWidget	*irperm;	/* Require permissions match? */
 	GtkWidget	*iphbox;	/* Hbox for all the toggle buttons. */
 	GtkWidget	*iperm[6];	/* Toggle buttons for permissions (set uid, gid, sticky, read, write, execute). */
@@ -68,7 +68,7 @@
 /* 1998-08-13 -	Set the widgets so they reflect the settings for the given file type. */
 static void set_widgets(P_Types *page, FType *tpe)
 {
-	char	*itext[] = { tpe->suffix, tpe->name_re_src, tpe->file_re_src }, buf[FS_NAME_MAX + 32];
+	char	*itext[3], buf[FS_NAME_MAX + 32];
 	int	iflags[] = { FTFL_REQSUFFIX, FTFL_MATCHNAME, FTFL_MATCHFILE },
 		pflags[] = { FTPM_SETUID, FTPM_SETGID, FTPM_STICKY, FTPM_READ, FTPM_WRITE, FTPM_EXECUTE },
 		igflags[] = { 0, FTFL_GLOBNAME, FTFL_GLOBFILE },
@@ -76,6 +76,10 @@
 	GtkAdjustment	*adj;
 	int	i;
 
+	itext[0] = tpe->suffix;
+	itext[1] = tpe->name_re_src;
+	itext[2] = tpe->file_re_src;
+
 	if(tpe != NULL)
 	{
 		gtk_entry_set_text(GTK_ENTRY(page->name), tpe->name);
@@ -177,10 +181,13 @@
 /* 1998-08-13 -	Copy the current type definitions and display the copies in the main clist. */
 static void populate_clist(MainInfo *min, P_Types *page)
 {
-	char	prio[32], *text[] = { NULL, prio };
+	char	prio[32], *text[2];
 	gint	row;
 	GList	*here;
 
+	text[0] = NULL;
+	text[1] = prio;
+
 	gtk_clist_clear(GTK_CLIST(page->clist));
 	reset_widgets(page);
 
@@ -503,7 +510,7 @@
 			*clt[] = { "Name", "Priority" };
 	int		idmax[] = { FT_SUFFIX_MAX, FT_NAMERE_MAX, FT_FILERE_MAX },
 			ifperm[] = { FTPM_SETUID, FTPM_SETGID, FTPM_STICKY, FTPM_READ, FTPM_WRITE, FTPM_EXECUTE };
-	static umode_t	type[] = { S_IFREG, S_IFDIR, S_IFLNK, S_IFBLK, S_IFCHR, S_IFIFO, S_IFSOCK };
+	static mode_t	type[] = { S_IFREG, S_IFDIR, S_IFLNK, S_IFBLK, S_IFCHR, S_IFIFO, S_IFSOCK };
 	int		i, y;
 
 	if(name == NULL)
@@ -777,7 +784,7 @@
 	int	perm = 0;
 	FType	*tpe;
 	XmlNode	*data;
-	umode_t	mode = 0;
+	mode_t	mode = 0;
 
 	if((data = xml_tree_search(node, "name")) != NULL)
 		name = XML_TEXT(data);
diff -x Makefile -ru gentoo-0.9.10/child_dialog.c newgentoo/child_dialog.c
--- gentoo-0.9.10/child_dialog.c	Sat Oct  3 12:18:07 1998
+++ newgentoo/child_dialog.c	Mon Oct  5 00:49:34 1998
@@ -17,8 +17,11 @@
 {
 	GSList		*here;
 	Child		*ch;
-	char		pid_buf[32], *line[] = { pid_buf, NULL }, *title[] = { "", "" };
+	char		pid_buf[32], *line[2], *title[] = { "", "" };
 	static CDlgInfo	cdl;
+
+	line[0] = pid_buf;
+	line[1] = NULL;
 
 	cdl.clist = gtk_clist_new_with_titles(2, title);
 	gtk_clist_column_titles_hide(GTK_CLIST(cdl.clist));
diff -x Makefile -ru gentoo-0.9.10/cmd_chmod.c newgentoo/cmd_chmod.c
--- gentoo-0.9.10/cmd_chmod.c	Sat Oct  3 12:18:07 1998
+++ newgentoo/cmd_chmod.c	Sun Oct  4 23:55:41 1998
@@ -3,7 +3,7 @@
 **		Made significantly simpler by the new cmd_generic module.
 */
 
-#include <asm/types.h>
+#include <sys/types.h>
 
 #include "gentoo.h"
 #include "errors.h"
@@ -32,14 +32,14 @@
 	mode_t		last_mode;
 } ChmInfo;
 
-static umode_t mask[] = {S_ISUID, S_ISGID, S_ISVTX,  S_IRUSR, S_IWUSR, S_IXUSR,
+static mode_t mask[] = {S_ISUID, S_ISGID, S_ISVTX,  S_IRUSR, S_IWUSR, S_IXUSR,
 			 S_IRGRP, S_IWGRP, S_IXGRP,  S_IROTH, S_IWOTH, S_IXOTH};
 
 /* ----------------------------------------------------------------------------------------- */
 
 static mode_t get_checks(ChmInfo *chm)
 {
-	umode_t	mode = 0;
+	mode_t	mode = 0;
 	int	i;
 
 	for(i = 0; i < sizeof mask / sizeof mask[0]; i++)
@@ -50,7 +50,7 @@
 	return mode;
 }
 
-static void set_checks(ChmInfo *chm, umode_t mode)
+static void set_checks(ChmInfo *chm, mode_t mode)
 {
 	int	i;
 
@@ -63,7 +63,7 @@
 	ChmInfo	*chm = (ChmInfo *) user;
 	char	*name = src->dir.line[row].name;
 	char	temp[FILENAME_MAX + 32];
-	umode_t	mode = src->dir.line[row].stat.st_mode;
+	mode_t	mode = src->dir.line[row].stat.st_mode;
 
 	gtk_window_set_title(win, "Change mode");
 
@@ -77,7 +77,7 @@
 static int chm_action(MainInfo *min, DirPane *src, DirPane *dst, int row, gpointer user)
 {
 	ChmInfo	*chm = (ChmInfo *) user;
-	umode_t	mode;
+	mode_t	mode;
 
 	mode = get_checks(chm);
 	if(chmod(src->dir.line[row].name, mode))
diff -x Makefile -ru gentoo-0.9.10/cmd_chown.c newgentoo/cmd_chown.c
--- gentoo-0.9.10/cmd_chown.c	Sat Oct  3 12:18:07 1998
+++ newgentoo/cmd_chown.c	Sun Oct  4 23:56:20 1998
@@ -39,7 +39,7 @@
 
 static void cho_body(MainInfo *min, DirPane *src, int row, GtkWindow *win, gpointer user)
 {
-	char	label[NAME_MAX+32];
+	char	label[MAXNAMLEN+32];
 	ChoInfo	*cho = (ChoInfo *) user;
 
 	gtk_window_set_title(win, "Change ownership");
diff -x Makefile -ru gentoo-0.9.10/cmd_delete.c newgentoo/cmd_delete.c
--- gentoo-0.9.10/cmd_delete.c	Sat Oct  3 12:18:07 1998
+++ newgentoo/cmd_delete.c	Sun Oct  4 23:49:50 1998
@@ -104,7 +104,7 @@
 {
 	char	*dest, old_path[PATH_MAX];
 	int	i, num = 0;
-	umode_t	mode;
+	mode_t	mode;
 	OvwRes	ores;
 
 	if(!fut_cd(src->dir.path, old_path, sizeof old_path))
diff -x Makefile -ru gentoo-0.9.10/cmd_mkdir.c newgentoo/cmd_mkdir.c
--- gentoo-0.9.10/cmd_mkdir.c	Sat Oct  3 12:18:07 1998
+++ newgentoo/cmd_mkdir.c	Sun Oct  4 23:57:22 1998
@@ -63,7 +63,7 @@
 	{
 		if((mi.label = gtk_label_new("Enter name of directory to create:")) != NULL)
 		{
-			if((mi.entry = gtk_entry_new_with_max_length(NAME_MAX)) != NULL)
+			if((mi.entry = gtk_entry_new_with_max_length(MAXNAMLEN)) != NULL)
 			{
 				if((mi.check = gtk_check_button_new_with_label("CD To New Directory?")) != NULL)
 				{
diff -x Makefile -ru gentoo-0.9.10/cmd_rename.c newgentoo/cmd_rename.c
--- gentoo-0.9.10/cmd_rename.c	Sat Oct  3 12:18:07 1998
+++ newgentoo/cmd_rename.c	Sun Oct  4 23:54:59 1998
@@ -40,7 +40,7 @@
 
 	if(ren->ovw_open == 0)
 	{
-		ovw_overwrite_begin(ren->min, "\%s\" already exists - proceed with rename?", OVWF_HIDE);
+		ovw_overwrite_begin(ren->min, "\"%s\" already exists - proceed with rename?", OVWF_HIDE);
 		ren->ovw_open = TRUE;
 	}
 }
@@ -94,7 +94,7 @@
 	{
 		if((ri.label = gtk_label_new("Rename")) != NULL)
 		{
-			if((ri.entry = gtk_entry_new_with_max_length(NAME_MAX)) != NULL)
+			if((ri.entry = gtk_entry_new_with_max_length(MAXNAMLEN)) != NULL)
 			{
 				gtk_box_pack_start(GTK_BOX(ri.vbox), ri.label, FALSE, FALSE, 0);
 				gtk_box_pack_start(GTK_BOX(ri.vbox), ri.entry, FALSE, FALSE, 0);
diff -x Makefile -ru gentoo-0.9.10/cmd_split.c newgentoo/cmd_split.c
--- gentoo-0.9.10/cmd_split.c	Sat Oct  3 12:18:07 1998
+++ newgentoo/cmd_split.c	Sun Oct  4 23:56:48 1998
@@ -48,7 +48,7 @@
 /* 1998-09-01 -	Pretty much rewrote this function, now that the sizeutil module exists. */
 static void spt_body(MainInfo *min, DirPane *src, gint row, GtkWindow *win, gpointer user)
 {
-	char		*name, tmp1[2 * NAME_MAX], *tptr = tmp1, siz1[32], siz2[32];
+	char		*name, tmp1[2 * MAXNAMLEN], *tptr = tmp1, siz1[32], siz2[32];
 	SplitInfo	*spi = (SplitInfo *) user;
 
 	gtk_window_set_title(win, "Split");
diff -x Makefile -ru gentoo-0.9.10/cmdgrab.c newgentoo/cmdgrab.c
--- gentoo-0.9.10/cmdgrab.c	Sat Oct  3 12:18:07 1998
+++ newgentoo/cmdgrab.c	Mon Oct  5 00:52:52 1998
@@ -152,7 +152,7 @@
 */
 static void grab_output(MainInfo *min, char *prog, pid_t child, int fd_out, int fd_err)
 {
-	char		buf[NAME_MAX + 32];
+	char		buf[MAXNAMLEN + 32];
 	GrabInfo	*gri;
 
 	if((gri = malloc(sizeof *gri)) != NULL)
diff -x Makefile -ru gentoo-0.9.10/cmdseq.c newgentoo/cmdseq.c
--- gentoo-0.9.10/cmdseq.c	Sat Oct  3 12:18:07 1998
+++ newgentoo/cmdseq.c	Mon Oct  5 00:52:19 1998
@@ -33,7 +33,7 @@
 	if(cfg->commands.native == NULL)
 		cfg->commands.native = g_hash_table_new(g_str_hash, g_str_equal);
 	if(cfg->commands.native != NULL)
-		g_hash_table_insert(cfg->commands.native, (gchar *) name, f);
+		g_hash_table_insert(cfg->commands.native, (gchar *) name, (void *)f);
 }
 
 /* ----------------------------------------------------------------------------------------- */
@@ -252,7 +252,7 @@
 	char		msg[CSQ_NAME_MAX + 64];
 	NativeCmd	nc;
 
-	if((nc = g_hash_table_lookup(min->cfg.commands.native, name)) != NULL)
+	if((nc = (NativeCmd)g_hash_table_lookup(min->cfg.commands.native, name)) != NULL)
 	{
 		DirPane	*src = min->gui->cur_dir;
 		return nc(min, src, dp_mirror(min, src));
@@ -376,7 +376,6 @@
 		default:
 			return 0;
 	}
-	return 0;
 }
 
 /* 1998-09-25 -	Execute a command sequence. This, of course, is sort of the most important
@@ -425,7 +424,6 @@
 		return cmdseq_execute(min, cs);
 	else
 		return execute_builtin(min, name);
-	return 0;
 }
 
 /* 1998-09-25 -	Continue exeuction of a command. */
diff -x Makefile -ru gentoo-0.9.10/dialog.c newgentoo/dialog.c
--- gentoo-0.9.10/dialog.c	Sat Oct  3 12:18:07 1998
+++ newgentoo/dialog.c	Mon Oct  5 00:44:54 1998
@@ -19,6 +19,7 @@
 
 #include <string.h>
 #include <unistd.h>
+#include <alloca.h>
 
 #include <gdk/gdkkeysyms.h>
 
@@ -112,7 +113,7 @@
 	GtkWidget	*label;
 
 	if((label = gtk_label_new(body)) != NULL)
-		return dlg_dialog(label, yes, no, func, data);
+		dlg_dialog(label, yes, no, func, data);
 }
 
 /* 1998-06-04 -	A little more sophisticated dialog function. Just shows the widget
@@ -126,9 +127,12 @@
 void dlg_dialog(GtkWidget *body, char *yes, char *no, DlgFunction func, void *data)
 {
 	static Dialog	dialog;
-	char		*lab[2] = { yes, no };
+	char		*lab[2];
 	int		i;
 
+	lab[0] = yes;
+	lab[1] = no;
+
 	dialog.button[0] = dialog.button[1] = NULL;
 
 	if((dialog.dlg = gtk_dialog_new()) != NULL)
@@ -141,9 +145,9 @@
 		{
 			if(lab[i] != NULL && (dialog.button[i] = gtk_button_new_with_label(lab[i])) != NULL)
 			{
-				gtk_object_set_data(GTK_OBJECT(dialog.button[i]), "func", func);
-				gtk_object_set_data(GTK_OBJECT(dialog.button[i]), "data", data);
-				gtk_signal_connect(GTK_OBJECT(dialog.button[i]), "clicked", GTK_SIGNAL_FUNC(evt_button), (gpointer) 1 + i);
+				gtk_object_set_data(GTK_OBJECT(dialog.button[i]), "func", (void *)func);
+				gtk_object_set_data(GTK_OBJECT(dialog.button[i]), "data", (void *)data);
+				gtk_signal_connect(GTK_OBJECT(dialog.button[i]), "clicked", GTK_SIGNAL_FUNC(evt_button), (char *) 1 + i);
 				gtk_signal_connect_object(GTK_OBJECT(dialog.button[i]), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), (gpointer) dialog.dlg);
 				GTK_WIDGET_SET_FLAGS(dialog.button[i], GTK_CAN_DEFAULT);
 				gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog.dlg)->action_area), dialog.button[i], TRUE, TRUE, 0);
@@ -234,9 +238,10 @@
 */
 DlgMulti * dlg_multi_create(GtkWidget *body, char *buttons)
 {
-	char		buttons2[strlen(buttons) + 2], btn[32], *src, *dst;
+	char		*buttons2 = alloca(strlen(buttons) + 2), btn[32], *src, *dst;
 	DlgMulti	*mul = &the_multi;
 	GtkWidget	*b;
+
 
 	if((mul->dialog = gtk_dialog_new()) != NULL)
 	{
Only in newgentoo: gentoo
diff -x Makefile -ru gentoo-0.9.10/gentoo.h newgentoo/gentoo.h
--- gentoo-0.9.10/gentoo.h	Sat Oct  3 12:18:08 1998
+++ newgentoo/gentoo.h	Sun Oct  4 23:45:24 1998
@@ -7,7 +7,7 @@
 #include <string.h>
 #include <sys/stat.h>
 #include <sys/time.h>
-#include <asm/types.h>
+#include <sys/types.h>
 #include <dirent.h>
 #include <unistd.h>
 #include <regex.h>
@@ -59,7 +59,7 @@
 typedef struct {			/* Used to map stat() info onto names. */
 	char	name[FT_NAME_MAX];		/* Human-readable name of filetype (e.g. "GIF image", "MP3 song"). */
 	gint16	priority;			/* Priority for ordering the checks. 0 is highest. */
-	umode_t	mode;				/* Type flags, matched against stat()'s mode info. */
+	mode_t	mode;				/* Type flags, matched against stat()'s mode info. */
 	guint32	flags;				/* Various flags. */
 	guint32	perm;				/* Permissions to require. Not orthogonal with mode. */
 	char	suffix[FT_SUFFIX_MAX];		/* Suffix to require (if FTFL_REQSUFFIX is set). */
diff -x Makefile -ru gentoo-0.9.10/hash_dialog.c newgentoo/hash_dialog.c
--- gentoo-0.9.10/hash_dialog.c	Sat Oct  3 12:18:08 1998
+++ newgentoo/hash_dialog.c	Mon Oct  5 00:45:41 1998
@@ -50,8 +50,10 @@
 static void populate_clist(gpointer data, gpointer user)
 {
 	HDlgInfo	*hdl = (HDlgInfo *) user;
-	char		*line[] = { data };
+	char		*line[1];
 	gint		row;
+
+	line[0] = data;
 
 	if(data != NULL)
 	{
Only in newgentoo/obj: buttons.o
Only in newgentoo/obj: cfg_buttons.o
Only in newgentoo/obj: cfg_cmdseq.o
Only in newgentoo/obj: cfg_dirpane.o
Only in newgentoo/obj: cfg_gui.o
Only in newgentoo/obj: cfg_paths.o
Only in newgentoo/obj: cfg_shortcuts.o
Only in newgentoo/obj: cfg_styles.o
Only in newgentoo/obj: cfg_types.o
Only in newgentoo/obj: child_dialog.o
Only in newgentoo/obj: children.o
Only in newgentoo/obj: cmd_about.o
Only in newgentoo/obj: cmd_activate.o
Only in newgentoo/obj: cmd_chmod.o
Only in newgentoo/obj: cmd_chown.o
Only in newgentoo/obj: cmd_copy.o
Only in newgentoo/obj: cmd_copyas.o
Only in newgentoo/obj: cmd_delete.o
Only in newgentoo/obj: cmd_direnter.o
Only in newgentoo/obj: cmd_file.o
Only in newgentoo/obj: cmd_generic.o
Only in newgentoo/obj: cmd_getsize.o
Only in newgentoo/obj: cmd_mkdir.o
Only in newgentoo/obj: cmd_move.o
Only in newgentoo/obj: cmd_moveas.o
Only in newgentoo/obj: cmd_parent.o
Only in newgentoo/obj: cmd_rename.o
Only in newgentoo/obj: cmd_rescan.o
Only in newgentoo/obj: cmd_run.o
Only in newgentoo/obj: cmd_select.o
Only in newgentoo/obj: cmd_split.o
Only in newgentoo/obj: cmd_swap.o
Only in newgentoo/obj: cmdgrab.o
Only in newgentoo/obj: cmdparse.o
Only in newgentoo/obj: cmdseq.o
Only in newgentoo/obj: cmdseq_dialog.o
Only in newgentoo/obj: dialog.o
Only in newgentoo/obj: dirpane.o
Only in newgentoo/obj: dpformat.o
Only in newgentoo/obj: errors.o
Only in newgentoo/obj: file.o
Only in newgentoo/obj: fileutil.o
Only in newgentoo/obj: gentoo.o
Only in newgentoo/obj: guiutil.o
Only in newgentoo/obj: hash_dialog.o
Only in newgentoo/obj: iconutil.o
Only in newgentoo/obj: list_dialog.o
Only in newgentoo/obj: overwrite.o
Only in newgentoo/obj: progress.o
Only in newgentoo/obj: queue.o
Only in newgentoo/obj: sizeutil.o
Only in newgentoo/obj: strutil.o
Only in newgentoo/obj: style_dialog.o
Only in newgentoo/obj: styles.o
Only in newgentoo/obj: textview.o
Only in newgentoo/obj: types.o
Only in newgentoo/obj: userinfo.o
Only in newgentoo/obj: xmlutil.o
Only in newgentoo: shit
diff -x Makefile -ru gentoo-0.9.10/types.c newgentoo/types.c
--- gentoo-0.9.10/types.c	Sat Oct  3 12:18:09 1998
+++ newgentoo/types.c	Mon Oct  5 00:47:53 1998
@@ -54,7 +54,7 @@
 ** 1998-09-07 -	Added another argument, for the new permissions support. That's eight
 **		arguments; pretty closed to my personal limit. :)
 */
-FType * typ_type_new(CfgInfo *cfg, char *name, umode_t mode, int perm, char *suffix, char *name_re, char *file_re, char *style)
+FType * typ_type_new(CfgInfo *cfg, char *name, mode_t mode, int perm, char *suffix, char *name_re, char *file_re, char *style)
 {
 	FType	*type;
 
@@ -143,7 +143,7 @@
 static int check_perm(FType *type, DirLine *line)
 {
 	int	pr = 1, pw = 1, px = 1;
-	umode_t	mode = 0;
+	mode_t	mode = 0;
 	uid_t	uid;
 	gid_t	gid;
 
@@ -337,7 +337,7 @@
 void typ_identify_end(MainInfo *min, char *path)
 {
 	GList	*here;
-	char	buf[NAME_MAX + 2], *temp_name, line[NAME_MAX + 256], *fout;
+	char	buf[MAXNAMLEN + 2], *temp_name, line[MAXNAMLEN + 256], *fout;
 	int	fd[2], len, status;
 	pid_t	file_pid;
 	FType	*type;
diff -x Makefile -ru gentoo-0.9.10/types.h newgentoo/types.h
--- gentoo-0.9.10/types.h	Sat Oct  3 12:18:09 1998
+++ newgentoo/types.h	Sun Oct  4 23:45:58 1998
@@ -4,7 +4,7 @@
 
 #define	TYP_IS_UNKNOWN(t)	((t)->mode == 0)
 
-FType *	typ_type_new(CfgInfo *cfg, char *name, umode_t mode, int perm, char *suffix, char *name_re, char *file_re, char *style);
+FType *	typ_type_new(CfgInfo *cfg, char *name, mode_t mode, int perm, char *suffix, char *name_re, char *file_re, char *style);
 FType *	typ_type_copy(FType *old);
 GList *	typ_type_insert(GList *list, FType *type);
 void	typ_type_destroy(FType *type);
diff -x Makefile -ru gentoo-0.9.10/xmlutil.c newgentoo/xmlutil.c
--- gentoo-0.9.10/xmlutil.c	Sat Oct  3 12:18:09 1998
+++ newgentoo/xmlutil.c	Mon Oct  5 00:11:20 1998
@@ -586,7 +586,7 @@
 			}
 		}
 		putchar('\n');
-		g_slist_foreach(root->children, (GFunc) xml_tree_print, (gpointer) level + 1);
+		g_slist_foreach(root->children, (GFunc) xml_tree_print, (char *) level + 1);
 	}
 }
 



-- 
 .-.   .-.    Life is a sexually transmitted disease.
(_  \ /  _)
     |        dave@fly.cc.fer.hr
     |
