dtfile: Resolve CID 87776. OkCallback is of type XtCallbackProc, it doesn't return one
authorPeter Howkins <flibble@users.sf.net>
Thu, 15 Jan 2015 15:15:31 +0000 (15:15 +0000)
committerPeter Howkins <flibble@users.sf.net>
Thu, 15 Jan 2015 15:15:31 +0000 (15:15 +0000)
cde/programs/dtfile/ModAttr.c

index f86ca8fc0d684b60533136d775828471d1b08d82..ad2c85d42aeb9bfe52ff464a2560d52e9add2ea1 100644 (file)
@@ -201,7 +201,7 @@ static void WriteResourceValues(
                         char **name_list) ;
 static void FreeValues(
                         ModAttrData *modAttr_data) ;
-static XtCallbackProc OkCallback(
+static void OkCallback(
                         Widget w,
                         ModAttrApply *apply_data,
                         XtPointer call_data) ;
@@ -1854,7 +1854,7 @@ FreeValues(
  *
  ************************************************************************/
 
-static XtCallbackProc
+static void
 OkCallback(
         Widget w,
         ModAttrApply *apply_data,
@@ -1873,9 +1873,9 @@ OkCallback(
   old = (ModAttrData *) old_dialog->data;
 
   if(RecheckFlag(NULL,w))
-    return None;
+    return;
   else if(RecheckFlag(NULL,close))
-    return None;
+    return;
 
   new_attr_data = (ModAttrData *) XtCalloc (1, sizeof (ModAttrData));
   new_attr_data->displayed = True;