DtSvc/DtUtil1: fix implicit function declarations
authorJon Trulson <jon@radscan.com>
Mon, 28 Oct 2019 19:22:09 +0000 (13:22 -0600)
committerJon Trulson <jon@radscan.com>
Mon, 28 Oct 2019 20:30:36 +0000 (14:30 -0600)
16 files changed:
cde/lib/DtSvc/DtUtil1/Action.c
cde/lib/DtSvc/DtUtil1/ActionUtil.c
cde/lib/DtSvc/DtUtil1/CmdMain.c
cde/lib/DtSvc/DtUtil1/DbLoad.c
cde/lib/DtSvc/DtUtil1/Dnd.c
cde/lib/DtSvc/DtUtil1/DndDrag.c
cde/lib/DtSvc/DtUtil1/DndDrop.c
cde/lib/DtSvc/DtUtil1/DtsDb.c
cde/lib/DtSvc/DtUtil1/DtsInit.c
cde/lib/DtSvc/DtUtil1/DtsMM.c
cde/lib/DtSvc/DtUtil1/DtsSort.c
cde/lib/DtSvc/DtUtil1/MMDb.c
cde/lib/DtSvc/DtUtil1/Saver.c
cde/lib/DtSvc/DtUtil1/WmMarquee.c
cde/lib/DtSvc/DtUtil1/WmWsCallB.c
cde/lib/DtSvc/DtUtil1/inttab.c

index a69918e9217fb21b97cd734c037ffe0391ea767a..0af2486034df286f97b70492e86ea9621fb6e696 100644 (file)
@@ -108,6 +108,23 @@ extern char * _DtStripSpaces(
                         char * string) ;
 extern char * _DtDbPathIdToString( DtDbPathId pathId) ;
 
+extern int _DtActDeleteChildRec( _DtActInvRecT *invp, _DtActChildRecT *childp);
+extern int _DtActionCommandInvoke(
+    long wintype,
+    char * cwdHost,
+    char * cwdDir,
+    char * execString,
+    char * termOpts,
+    char * execHost,
+    char * procId,
+    char * tmpFiles,
+    void (*success_proc)(),
+    void *success_data,
+    void (*failure_proc)(),
+    void *failure_data);
+
+
+
 #define _MAX_MAP_ATTEMPTS      100     /* Maximum nuber of "MAPS" that will
                                           be done. */
 #define _DT_ACTION_MAX_CLOSE_TRIES     5
index 3a4c7667df237c2bdc77ab659c76d2fc66330be0..5a8b7c46085413701f33b6227e73b9941458c7a6 100644 (file)
@@ -94,6 +94,10 @@ static void   _DtActFreeChildRec( _DtActChildRecT *childp);
 #ifndef P_tmpdir
 #define P_tmpdir       "/var/tmp"
 #endif
+
+extern void _DtFreeRequest(ActionRequest *request );
+
+
 /*******************************************************************************
  *  _DtBasename -- utiltiy function to return a pointer to a
  * string containing the basename of a file name.  It doesn't
index 2635b961e86e1f1582b85479f8eaf816c1452002..67dfd9dac5bf53fe698354d782f4595bcc9f413c 100644 (file)
@@ -133,6 +133,9 @@ static int DtCmdGetWindowType(
         unsigned long windowTypeMask);
 static void _DtCmdInitializeErrorMessages(void);
 
+extern void _DtEnvMapForRemote (char *targetHost);
+extern void _DtEnvRestoreLocal (void);
+
 /*
  * Command invocatin error messages.
  */
index f7187348ae83dd130fc5af4ecbefcb4d8fa01ca9..07caa4ee7125524cc6b337c113882fb48fa708cc 100644 (file)
@@ -103,6 +103,8 @@ extern      void    _DtDtsDAConverter(DtDtsDbField * fields,
 extern void    _DtDtsSeqReset(void);
 extern int     _DtDtsNextDCSeq(void);
 extern int     _DtDtsNextDASeq(void);
+extern  int     _DtDtsMMUnLoad(void);
+extern  void    _DtFreeActionDB(void);
 
 char **_DtsDbListDb(void);
 
index b8decc50fb87a33b0549e6a521f483313c49e526..051c23aac358982a1351703da104ea1f53fabf87 100644 (file)
@@ -58,6 +58,7 @@
 #include <Xm/Xm.h>
 #include <Xm/DragDrop.h>
 #include <Xm/DropTrans.h>
+#include <Xm/AtomMgr.h>
 #include <Dt/UserMsg.h>
 #include "Dnd.h"
 #include "DndP.h"
index 10166ab294fd94a00b9cd8cfe6fc9d45df647ab0..9c26e22a8f6d1f96a1b17598bd71b16575594a11 100644 (file)
@@ -60,6 +60,7 @@
 #include <Xm/DragC.h> 
 #include <Xm/DragCP.h>
 #include <Xm/DragOverSP.h>
+#include <Dt/Wsm.h>
 #include "Dnd.h"
 #include "DndP.h"
 #include "DtSvcLock.h"
@@ -76,6 +77,14 @@ static void  dndDragDropFinishCallback(Widget, XtPointer, XtPointer);
 static void    dndTopLevelEnterCallback(Widget, XtPointer, XtPointer);
 static void    dndTopLevelLeaveCallback(Widget, XtPointer, XtPointer);
 
+extern int _DtDndCountVarArgs(va_list vaList);
+extern void _DtDndArgListFromVarArgs(va_list vaList,
+                                     Cardinal maxArgs,
+                                     ArgList *argListReturn,
+                                     Cardinal *argCountReturn);
+extern void _XmDragOverChange(Widget w,
+                              unsigned char dropSiteStatus);
+
 /*
  * Drag Initiator Resources
  */
index af8ae49db65cd2589864be71118905880da583dd..32d3cee6411f8f263f2b2474a86b7daa6df34f83 100644 (file)
@@ -114,6 +114,14 @@ static XtResource dropResources[] = {
        XtRImmediate, (XtPointer)False },
 };
 
+extern int _DtDndCountVarArgs(va_list vaList);
+extern void _DtDndArgListFromVarArgs(va_list vaList,
+                                     Cardinal maxArgs,
+                                     ArgList *argListReturn,
+                                     Cardinal *argCountReturn);
+
+
+
 #undef Offset
 
 /*
index ba7c30865a5b621be1b94b3e41d7d5e4f5e39e8a..51e97a86777e0d295b4599d20d004492c5bf804f 100644 (file)
 #include <Dt/UserMsg.h>
 #include "DtSvcLock.h"
 
-extern char *strdup(const char *);
+extern int _MMWriteDb(DtDirPaths *dirs, int num_db, DtDtsDbDatabase **db_list,
+                      const char *CacheFile);
+
+
 
 #define PADMEM 10
 
index 7d67657f2a7e377fd4ccba4823cc1729f14838de..0e385e274e6da62ddb00c02883ca8ed4b6abbb2f 100644 (file)
@@ -73,9 +73,7 @@
 #include <Dt/Dts.h>
 #include "DtSvcLock.h"
 
-#if !defined(__linux__)
-extern char    *strdup(const char *);
-#endif
+extern int _DtDtsMMUnLoad(void);
 
 static int      cur_dc_count = 0;
 static int      cur_da_count = 0;
index 6892a18090dd78bd38c25204518bf03268f8737d..8c5c2fcf9e9a8303ca9bca5b572cc7620f8b8513 100644 (file)
@@ -65,6 +65,11 @@ static       size_t          mmaped_size = 0;
 static int             mmaped_fd = 0;
 static DtDtsMMHeader   *head = 0;
 
+int _DtDtsMMUnLoad(void);
+
+extern void _DtDbFillVariables (char **line );
+extern void _DtDtsClear(void);
+
 void *
 _DtDtsMMGetPtr(int index)
 {
index 76f7dac96a1bff0aad68fc3ca40d4f350512e88e..5ed888034bbedc6f79eb713a7c16a87831058e6f 100644 (file)
@@ -219,7 +219,7 @@ bool(int i)
 
 #endif
 
-check_content(char *val1, char *val2)
+static int check_content(char *val1, char *val2)
 {
        char    *v1 = strdup(val1);
        char    *v2 = strdup(val2);
@@ -462,7 +462,7 @@ cde_dc_field_compare(DtDtsDbField ** a, DtDtsDbField ** b)
                cde_ft_field_value((*b)->fieldName));
 }
 
-cde_da_compare(DtDtsDbRecord ** a, DtDtsDbRecord ** b)
+int cde_da_compare(DtDtsDbRecord ** a, DtDtsDbRecord ** b)
 {
        int             results = ((*a)->recordName) - ((*b)->recordName);
 
index 1d3e5b52626bdfb77e1391cb7f0afd66f2747580..8425643851551ef9d2768bf269d49a021e7690fd 100644 (file)
@@ -77,6 +77,10 @@ static       DtShmProtoIntList       int_handle = 0;
 
 #define QtB(a) _DtShmProtoAddStrtab(shm_handle, XrmQuarkToString(a), &isnew)
 
+/* DtsMM.c */
+extern int _DtDtsMMPathHash(DtDirPaths *dirs);
+
+
 int
 _MMWriteDb(DtDirPaths *dirs, int num_db, DtDtsDbDatabase **db_list,
           const char *CacheFile)
@@ -724,7 +728,7 @@ write_db(DtDtsMMHeader *header, void *index, int size, const char *CacheFile)
 }
 
 
-_DtActionCompareRecordBoson(
+intptr_t _DtActionCompareRecordBoson(
         DtDtsMMRecord *record1,
         DtDtsMMRecord *record2 )
 {
index 5e7db00ebea7bb297d6b2c0f4a00390e794e8dc3..147ba0c42b0a8b40dc6dd9a8057e6661e6a8dfe8 100644 (file)
@@ -54,6 +54,7 @@
 #include <X11/Intrinsic.h>
 #include <Saver.h>
 #include <SaverP.h>
+#include <Dt/Action.h>
 #include "DtSvcLock.h"
 
 /*
@@ -223,8 +224,8 @@ _DtSaverStart(
   /*
   * Launch saver.
   */
-  DtActionInvoke(wAction, saverAction, NULL, NULL,
-                 NULL, NULL, NULL, NULL, NULL, NULL);
+  DtActionInvoke(wAction, saverAction, NULL, 0,
+                 NULL, NULL, NULL, 0, NULL, NULL);
 
  /*
   * Return array as state information.
index 3475140955ead12486b4c26591256ceed64c39ff..bf7e16084c31a4ba98e6eb5714a985d20dacd840 100644 (file)
@@ -44,6 +44,7 @@
 #include <Tt/tttk.h>
 #include <Dt/Wsm.h> 
 #include <Dt/WsmM.h>
+#include <Dt/SvcTT.h>
 #include "WsmP.h" 
 #include <Dt/Service.h>
 #include <Xm/Xm.h>
index 91f12dfd9c083fd3198a2bfdd5733ad130820500..f094a639c8a41b50b2038b96084d25d8e1a745b4 100644 (file)
@@ -42,6 +42,7 @@
 #include <Dt/Service.h>
 #include <Dt/Wsm.h> 
 #include <Dt/WsmM.h>
+#include <Dt/SvcTT.h>
 #include "WsmP.h" 
 #include "DtSvcLock.h"
 
index bc1de38a3cbdce096b4c6c1df7cd0427dc3ec785..ab1296acb2391518b6fa55a83b19f6d2ad80ae49 100644 (file)
@@ -99,7 +99,8 @@ _DtShmProtoInitInttab(int sizeguess)
   return((void*)ptr);
 }
 
-_DtShmProtoAddInttab(DtShmProtoInttab intlist, unsigned int keyin, int datain)
+int _DtShmProtoAddInttab(DtShmProtoInttab intlist, unsigned int keyin,
+                         int datain)
 {
   intlist_t * ptr = (intlist_t *) intlist;
   int ** data;