mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
Fix to compile warnings.
* discarded-qualifiers warnings. * Function definitions, the .h doesn't match the .c. * Added some include to ensure the .c has function definition.
This commit is contained in:
parent
f9790767f3
commit
0086a7067e
9 changed files with 19 additions and 15 deletions
|
@ -1073,7 +1073,7 @@ _DtHelpCeGetLangSubParts (
|
|||
*****************************************************************************/
|
||||
int
|
||||
_DtHelpCeGetUncompressedFileName (
|
||||
char *name,
|
||||
char *name,
|
||||
char **ret_name )
|
||||
{
|
||||
char *inFile = NULL;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -2748,7 +2748,7 @@ void _DtGrRegisterConverter(
|
|||
*****************************************************************************/
|
||||
int _DtGrOpenFile(
|
||||
_DtGrStream *stream,
|
||||
const char *path)
|
||||
char *path)
|
||||
{
|
||||
char *fname = NULL;
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ typedef struct
|
|||
/* Open a file stream */
|
||||
int _DtGrOpenFile(
|
||||
_DtGrStream *stream,
|
||||
const char *path
|
||||
char *path
|
||||
);
|
||||
|
||||
/* Open a buffer stream */
|
||||
|
|
|
@ -71,6 +71,7 @@
|
|||
|
||||
#include <Dt/Help.h>
|
||||
#include "DisplayAreaI.h"
|
||||
#include "DisplayAreaP.h"
|
||||
#include "StringFuncsI.h"
|
||||
#include "HelposI.h"
|
||||
#include "HistoryI.h"
|
||||
|
|
|
@ -74,6 +74,7 @@
|
|||
* private includes
|
||||
*/
|
||||
#include "DisplayAreaI.h"
|
||||
#include "DisplayAreaP.h"
|
||||
|
||||
#include "bufioI.h"
|
||||
#include "Access.h"
|
||||
|
|
|
@ -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,7 +100,7 @@ XIOError(
|
|||
* FUNCTION:
|
||||
* RETURNS:
|
||||
*/
|
||||
static char *
|
||||
static const char *
|
||||
SysErrorMsg(
|
||||
int n
|
||||
)
|
||||
|
@ -109,7 +109,7 @@ SysErrorMsg(
|
|||
extern char *sys_errlist[];
|
||||
extern int sys_nerr;
|
||||
#endif
|
||||
char *s = ((n >= 0 && n < sys_nerr) ? sys_errlist[n] : "unknown error");
|
||||
const char *s = ((n >= 0 && n < sys_nerr) ? sys_errlist[n] : "unknown error");
|
||||
return (s ? s : "no such error");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue