dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtmail / dtmail / DmxPrintOptions.C
index 15011af2037aa742c1c079924173e9cf55050d78..f7a28e5f964d3b31cb067f609937f436f7065ad1 100644 (file)
@@ -16,7 +16,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  * Floor, Boston, MA 02110-1301 USA
  */
@@ -70,6 +70,7 @@
 
 
 #include <stdio.h>
+#include <stdint.h>
 #include <X11/Intrinsic.h>
 #include <Xm/Xm.h>
 #include <Xm/DialogS.h>
@@ -216,6 +217,12 @@ DmxPrintOptions::DmxPrintOptions (
     _propui_array = new DtVirtArray<PropUiItem *>(10);
     _propui_array_iterator = 0;
     _parent = parent;
+    _prop_source = NULL;
+    _hdrftr_frame = NULL;
+    _margin_frame = NULL;
+    _msgsep_iom = NULL;
+    _prthdr_iom = NULL;
+
 
     //
     //  Create form to hold the printing options
@@ -317,7 +324,7 @@ DmxPrintOptions::DmxPrintOptions (
                                        _FROM_MAILRC,
                                        margin_keys[j].key,
                                        DmxPrintOptions::isValidMarginSpec,
-                                       (void*) margin_keys[j].which);
+                                       (void*) (intptr_t) margin_keys[j].which);
         _propui_array->append(pui);
     }
 
@@ -672,11 +679,8 @@ DmxPrintOptions::isValidMarginSpec(PropUiItem* pui, void* data)
     char       *marginSpec = NULL;
     XtEnum     parseError;
     Widget     text;
-#if defined(linux) || defined(CSRG_BASED)
-    _DtPrintMarginEnum which = *((_DtPrintMarginEnum *) data);
-#else
-    _DtPrintMarginEnum which = (_DtPrintMarginEnum) data;
-#endif
+
+    _DtPrintMarginEnum which = (_DtPrintMarginEnum)(long)data;
 
     text = pui->getWidget();
     if (text)