LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File sentinel.diff of Package motif (Project devel:libraries:c_c++)

Index: b/clients/mwm/WmFunction.c
===================================================================
--- a/clients/mwm/WmFunction.c
+++ b/clients/mwm/WmFunction.c
@@ -1113,12 +1113,12 @@ Boolean F_Exec (String args, ClientData
 		directory, then we must call execlp and not execl
 		*/
 		shellname = shell;
-		execlp (shell, shellname, "-c", args, 0);
+		execlp (shell, shellname, "-c", args, (char *) 0);
 	    }
 	    else
 	    {
 		shellname++;
-		execl (shell, shellname, "-c", args, 0);
+		execl (shell, shellname, "-c", args, (char *) 0);
 	    }
 	}
 
@@ -1127,9 +1127,9 @@ Boolean F_Exec (String args, ClientData
 	 * Try /bin/sh .
 	 */
 #ifdef SVR4
-        execl ("/usr/bin/sh", "sh", "-c", args, 0);
+        execl ("/usr/bin/sh", "sh", "-c", args, (char *) 0);
 #else
-        execl ("/bin/sh", "sh", "-c", args, 0);
+        execl ("/bin/sh", "sh", "-c", args, (char *) 0);
 #endif
 
 
Index: b/demos/lib/Xmd/onHelp.c
===================================================================
--- a/demos/lib/Xmd/onHelp.c
+++ b/demos/lib/Xmd/onHelp.c
@@ -53,7 +53,7 @@ int main(int argc, String argv[])
   Widget dismiss;
 
   toplevel = XtVaAppInitialize(&app_context, "HelpOnHelp", NULL, 0, 
-			       &argc, argv, NULL, 0);
+			       &argc, argv, NULL, NULL);
   n = 0;
   XtSetArg(args[n], XmdNhelpFile, "helpOn"); n++;
   help = XmdCreateHelp(toplevel, "help", args, n);
Index: b/demos/programs/Exm/simple_app/simpleDemo.c
===================================================================
--- a/demos/programs/Exm/simple_app/simpleDemo.c
+++ b/demos/programs/Exm/simple_app/simpleDemo.c
@@ -149,7 +149,7 @@ main (int argc, char **argv)
 
   menu = XmCreatePulldownMenu(menuBar, "FileMenu", NULL, 0);
 
-  XtVaSetValues(cascade, XmNsubMenuId, menu, 0);
+  XtVaSetValues(cascade, XmNsubMenuId, menu, NULL);
 
   str = XmStringCreateLocalized("Quit");
   menuitem = XtVaCreateManagedWidget("item", xmPushButtonWidgetClass,
Index: b/demos/programs/filemanager/actions.c
===================================================================
--- a/demos/programs/filemanager/actions.c
+++ b/demos/programs/filemanager/actions.c
@@ -78,7 +78,7 @@ viewCB(Widget widget, char   *type, XtPo
   XtVaSetValues(fileviewer,
 		XmNlayoutType, spatial,
 		XmNentryViewType, size,
-		0, 0);
+		NULL);
 
   fixViewerSize(XtParent(fileviewer), NULL, NULL);
 
Index: b/demos/programs/fileview/text.c
===================================================================
--- a/demos/programs/fileview/text.c
+++ b/demos/programs/fileview/text.c
@@ -147,7 +147,7 @@ void NewPaneCallback(Widget widget, View
       XtSetValues(XtParent(new->text), args, n);
       XmTextSetTopCharacter(new->text,
 			    XmTextGetTopCharacter(this->current_pane->text));
-      XtVaSetValues(target, XmNheight, (Dimension) height/2);
+      XtVaSetValues(target, XmNheight, (Dimension) height/2, NULL);
    }
    printf("source text set\n");
    XtManageChild(new->text);
Index: b/demos/programs/popups/autopopups.c
===================================================================
--- a/demos/programs/popups/autopopups.c
+++ b/demos/programs/popups/autopopups.c
@@ -70,7 +70,7 @@ int main(int argc, char **argv)
   XmString	str, tmp1, tmp2;
 
   shell     = XtVaAppInitialize(&context, APP_CLASS, NULL, 0, &argc, argv,
-				NULL, 0);
+				NULL, NULL);
 
   frame1 = XmCreateFrame(shell, "outerframe", NULL, 0);
   XtManageChild(frame1);