$OpenBSD: patch-src_FmHistory_c,v 1.3 2016/01/28 13:30:02 sthen Exp $
--- src/FmHistory.c.orig	Mon Aug 18 10:35:01 1997
+++ src/FmHistory.c	Thu Jan 28 13:29:42 2016
@@ -69,7 +69,7 @@ HistoryList FmCreateHistoryList(char* name, Widget par
 	name?name:"fm_history",
 	simpleMenuWidgetClass,
 	parent,
-	0);
+	(void *)NULL);
 
  /* does the menu have a label? */
  XtSetArg(args[0],XtNlabel,&str);
@@ -80,7 +80,7 @@ HistoryList FmCreateHistoryList(char* name, Widget par
  if (str) XtVaSetValues(
 	XtNameToWidget(menu,"menuLabel"),
 	XtNfont,resources.bold_font,
-	0);
+	(void *)NULL);
 
  nargs=0;
  XtSetArg(args[nargs],XtNlineWidth,0); nargs++;
@@ -99,7 +99,7 @@ HistoryList FmCreateHistoryList(char* name, Widget par
 				smeBSBObjectClass,
 				menu,
 				XtNfont,resources.menu_font,
-				0),
+				(void *)NULL),
 			XtNcallback,
 			HistoryCB,
 			(XtPointer)hl);
@@ -125,7 +125,7 @@ HistoryList FmCreateHistoryList(char* name, Widget par
  /* from now on insert entries immediately after the line */
  XtVaSetValues(menu,
 	XtNinsertPosition,InsertAfterLine,
-	0);
+	(void *)NULL);
 
  hl->menu=menu;
 
@@ -154,7 +154,7 @@ void FmInsertHistoryPath(HistoryList hl, char *path)
 	history_menu,
 	XtNchildren,&chlds,
 	XtNnumChildren,&num_children,
-	0);
+	(void *)NULL);
 
 
  XtSetArg(arg,XtNlabel,&str);
@@ -193,7 +193,7 @@ void FmInsertHistoryPath(HistoryList hl, char *path)
 		smeBSBObjectClass,
 		history_menu,
 		XtNfont,resources.menu_font,
-		0),
+		(void *)NULL),
 	XtNcallback,
 	HistoryCB,
 	(XtPointer)hl);
@@ -214,7 +214,7 @@ void FmDeleteHistoryPath(HistoryList hl, char *path)
 	history_menu,
 	XtNchildren,&chlds,
 	XtNnumChildren,&num_children,
-	0);
+	(void *)NULL);
 
  XtSetArg(arg,XtNlabel,&str);
 
@@ -236,7 +236,7 @@ void FmDeleteHistoryPath(HistoryList hl, char *path)
 	if (i-haslabel==1) XtVaSetValues(
 		chlds[i],
 		XtNlineWidth,0,
-		0);
+		(void *)NULL);
 	XtDestroyWidget(found);
 	return;
  }
@@ -269,7 +269,7 @@ void FmChopHistoryList(HistoryList hl, int n)
 	history_menu,
 	XtNchildren,&chlds,
 	XtNnumChildren,&num_children,
-	0);
+	(void *)NULL);
 
  i=0;
  while (!XtIsSubclass(chlds[i],smeLineObjectClass)) i++;
@@ -318,7 +318,7 @@ static Cardinal InsertAfterLine(Widget w)
  Widget   cw=XtParent(w), *chlds;
  Cardinal pos;
 
- XtVaGetValues(cw,XtNchildren,&chlds,0);
+ XtVaGetValues(cw,XtNchildren,&chlds,(void *)NULL);
 
  pos=0;
  while(!XtIsSubclass(chlds[pos],smeLineObjectClass)) pos++;
@@ -345,7 +345,7 @@ static void HistoryCB(Widget w,XtPointer cld,XtPointer
   Boolean	keep_position=True;
 #endif
 
-  XtVaGetValues(w, XtNlabel, &str, 0);
+  XtVaGetValues(w, XtNlabel, &str, (void *)NULL);
   strcpy(path,str);
 
   fnexpand(path);
@@ -447,7 +447,7 @@ XtVaGetValues(
 	hl->menu,
 	XtNchildren,&chlds,
 	XtNnumChildren,&num_children,
-	0);
+	(void *)NULL);
 
 destroy=(WidgetList)XtMalloc(sizeof(Widget) *num_children);
 n_dest=0;
@@ -478,7 +478,7 @@ for (i=(int)num_children-1; i>=haslabel ; i--) {
 	}
   }
 
-  if (fixed<1) XtVaSetValues(chlds[line_i],XtNlineWidth,0,0);
+  if (fixed<1) XtVaSetValues(chlds[line_i],XtNlineWidth,0,(void *)NULL);
   chlds=0; /* for safety */
   for (i=0; i<n_dest; i++) XtDestroyWidget(destroy[i]);
   XtFree((char*)destroy); destroy=0;
