Browse Source

Merge /u/jrubio/cdesktopenv/ branch discarded-qualifiers into master

https://sourceforge.net/p/cdesktopenv/code/merge-requests/17/
Jon Trulson 4 years ago
parent
commit
511c2bb427

+ 1 - 1
cde/lib/DtHelp/Access.c

@@ -1073,7 +1073,7 @@ _DtHelpCeGetLangSubParts (
  *****************************************************************************/
 int
 _DtHelpCeGetUncompressedFileName (
-	char		 *name,
+	char	 *name,
 	char		**ret_name )
 {
     char *inFile = NULL;

+ 4 - 3
cde/lib/DtHelp/Format.c

@@ -89,6 +89,7 @@ extern int errno;
 #include "FormatCCDFI.h"
 #include "FormatSDLI.h"
 #include "StringFuncsI.h"
+#include "FormatI.h"
 
 
 #ifdef NLS16
@@ -1177,9 +1178,9 @@ int
 _DtHelpFormatToc (
     DtHelpDispAreaStruct	*pDAS,
     _DtHelpVolumeHdl		 volume,
-    char		         *id,
-    char			**ret_id,
-    XtPointer			 *ret_handle)
+    char		            *id,
+    char			       **ret_id,
+    XtPointer			    *ret_handle)
 {
     int             result   = 0;
     _DtCvTopicPtr    topic = NULL;

+ 5 - 5
cde/lib/DtHelp/FormatI.h

@@ -76,11 +76,11 @@ extern	int		 _DtFormatProcessString (
 				int       seg_type,
 				char	**font_attr );
 extern	int		 _DtHelpFormatToc (
-				XtPointer	  client_data,
-				_DtHelpVolumeHdl     volume,
-				char		*id_string,
-				char		*ret_id,
-				XtPointer	*ret_handle);
+				DtHelpDispAreaStruct *client_data,
+				_DtHelpVolumeHdl      volume,
+				char                 *id_string,
+				char                **ret_id,
+				XtPointer            *ret_handle);
 extern	int		 _DtHelpFormatTopic (
 				XtPointer	  client_data,
 				_DtHelpVolumeHdl     volume,

+ 2 - 1
cde/lib/DtHelp/GlobSearch.c

@@ -85,12 +85,13 @@
 
 #include <Dt/Help.h>
 #include <Dt/HelpDialog.h>
-
+ 
 /*
  * private includes
  */
 #include "bufioI.h"
 #include "Access.h"
+#include "DisplayAreaP.h"
 #include "AccessI.h"
 #include "StringFuncsI.h"
 #include "DisplayAreaI.h"

+ 1 - 1
cde/lib/DtHelp/Graphics.c

@@ -2748,7 +2748,7 @@ void _DtGrRegisterConverter(
  *****************************************************************************/
 int _DtGrOpenFile(
     _DtGrStream *stream,
-    const char  *path)
+    char  *path)
 {
     char *fname = NULL;
 

+ 1 - 1
cde/lib/DtHelp/GraphicsP.h

@@ -72,7 +72,7 @@ typedef struct
 /* Open a file stream */
 int _DtGrOpenFile(
     _DtGrStream *stream,
-    const char  *path
+    char        *path
 );
 
 /* Open a buffer stream */

+ 1 - 0
cde/lib/DtHelp/History.c

@@ -71,6 +71,7 @@
 
 #include <Dt/Help.h>
 #include "DisplayAreaI.h"
+#include "DisplayAreaP.h"
 #include "StringFuncsI.h"
 #include "HelposI.h"
 #include "HistoryI.h"

+ 1 - 0
cde/lib/DtHelp/Print.c

@@ -74,6 +74,7 @@
  * private includes
  */
 #include "DisplayAreaI.h"
+#include "DisplayAreaP.h"
 
 #include "bufioI.h"
 #include "Access.h"

+ 3 - 8
cde/programs/dtprintinfo/libUI/MotifUI/Debug.c

@@ -33,7 +33,7 @@
 #define INT_MESSAGE5    "    The connection was probably broken by a server shudown or KillClient.\r\n"
 
 static int PrintXError(Display *dpy, XErrorEvent *event, FILE *fp);
-static  char *SysErrorMsg(int n);
+static  const char *SysErrorMsg(int n);
 
 /* Error Handlers */
 static  int XIOError(Display *dpy);
@@ -100,17 +100,12 @@ XIOError(
  *   FUNCTION:
  *   RETURNS:
  */
-static char *
+static const char *
 SysErrorMsg(
    int n
    )
 {
-#if !defined(__linux__) && !defined(CSRG_BASED)
-    extern char *sys_errlist[];
-    extern int sys_nerr;
-#endif
-    char *s = ((n >= 0 && n < sys_nerr) ? sys_errlist[n] : "unknown error");
-    return (s ? s : "no such error");
+    return strerror(n);
 }
 
 /*