1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

cleanup: eliminate "implicit declaration" warnings.

Also fixed a potential core/memory corruption in dticon.
This commit is contained in:
Jon Trulson 2014-03-24 15:54:43 -06:00
parent f6adc98dd7
commit b2db23c0af
9 changed files with 20 additions and 9 deletions

View file

@ -22,6 +22,7 @@
*/
/* $XConsortium: regerror.c /main/3 1996/06/19 17:13:36 drk $ */
#include <stdio.h>
#include <stdlib.h>
void
tpt_regerror(s)

View file

@ -43,7 +43,8 @@
************************************<+>*************************************/
/* System Include Files */
#include <stdlib.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include <Xm/XmP.h>

View file

@ -42,6 +42,9 @@
****************************************************************************
************************************<+>*************************************/
#include <stdlib.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include <Xm/RowColumn.h>
#include <Xm/PushB.h>
@ -624,7 +627,7 @@ static void ManageButtonsCB(
TurnOnHourGlass(topLevel);
switch ((int)clientData)
switch ((long)clientData)
{
case CREATE_SAMPLE:
@ -745,7 +748,7 @@ static void Control1ButtonsCB(
TurnOnHourGlass(topLevel);
switch ((int)clientData)
switch ((long)clientData)
{
case CHANGE_CONTENT:
@ -881,14 +884,14 @@ static void HelpMenuCB(
/* Determine which help button was activated and display the
* appropriate help information */
switch ((int)clientData)
switch ((long)clientData)
{
case HELP_ON_ITEM:
while (!XtIsSubclass(widget, applicationShellWidgetClass))
widget = XtParent(widget);
status = DtHelpReturnSelectedWidgetId(widget, NULL, &selWidget);
status = DtHelpReturnSelectedWidgetId(widget, 0, &selWidget);
switch ((int)status)
{

View file

@ -41,6 +41,7 @@ $COPYRIGHT$:
* to determine how the lines are drawn.
*/
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <X11/Xlib.h>
#include <X11/Xresource.h>
@ -108,7 +109,7 @@ int main(
if (options.debugHelpPrint)
{
XrmPutFileDatabase(appDB,"db.dthelpprint"); /* dump rsrc for debug */
system("cat db.dthelpprint|fgrep -i print");
system("/bin/cat db.dthelpprint|/bin/fgrep -i print");
}
/****************************************

View file

@ -25,6 +25,7 @@
Copyright 1992 Hewlett-Packard Co.
*/
#include <string.h>
#include "basic.h"
#include "trie.h"
#include "cont.h"

View file

@ -25,6 +25,7 @@
Copyright 1992 Hewlett-Packard Co.
*/
#include <string.h>
#include "basic.h"
#include "trie.h"
#include "cont.h"

View file

@ -55,6 +55,8 @@
** implied warranty.
**
******************************************************************************/
#include <stdio.h>
#include <Xm/Xm.h>
#include "externals.h"
#include "main.h"

View file

@ -452,7 +452,7 @@ Write_File(
int i, j;
int mask_needed;
Boolean SUN;
char *base_name, *suffix, fname[256], *tmp, *tmp2, *vend;
char *base_name, *suffix, fname[MAXPATHLEN], *tmp, *tmp2, *vend;
Pixmap scratch_pix;
XImage *scratch_shape, *scratch_mask;
struct stat statbuf; /* Information on a file. */
@ -478,7 +478,8 @@ Write_File(
netfile = tt_host_file_netfile(fnameIn, tmp+1);
localfile = tt_netfile_file(netfile);
strncpy(fname, localfile, MAXPATHLEN);
strncpy(fname, localfile, MAXPATHLEN - 1);
fname[MAXPATHLEN - 1] = 0;
tmp[0] = ':';
tt_free(netfile);

View file

@ -101,7 +101,7 @@
# define ctime _huh_ctime
# include <stdlib.h>
# include <sys/types.h>
# include <sys/stat.h>
# include <string.h>