mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Removed a couple more compiler warnings.
git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15140 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: amiga_argarrayinit.c,v 1.4 2006-01-08 12:04:22 obarthel Exp $
|
||||
* $Id: amiga_argarrayinit.c,v 1.5 2006-09-21 09:24:20 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -77,7 +77,7 @@ ArgArrayInit(LONG argc, CONST_STRPTR * argv)
|
||||
for(i = 1 ; i < argc ; i++)
|
||||
CXLIB_argarray[i-1] = argv[i];
|
||||
|
||||
result = (unsigned char **)CXLIB_argarray;
|
||||
result = (STRPTR *)CXLIB_argarray;
|
||||
}
|
||||
else if (IconBase != NULL)
|
||||
{
|
||||
@ -90,7 +90,7 @@ ArgArrayInit(LONG argc, CONST_STRPTR * argv)
|
||||
if(CXLIB_disko == NULL)
|
||||
goto out;
|
||||
|
||||
result = (unsigned char **)CXLIB_disko->do_ToolTypes;
|
||||
result = (STRPTR *)CXLIB_disko->do_ToolTypes;
|
||||
}
|
||||
|
||||
out:
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: socket_ioctl.c,v 1.11 2006-01-08 12:04:24 obarthel Exp $
|
||||
* $Id: socket_ioctl.c,v 1.12 2006-09-21 09:24:20 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -91,14 +91,14 @@ ioctl(int sockfd,int request, ... /* char *arg */)
|
||||
{
|
||||
int * option = (int *)param;
|
||||
|
||||
if(request == (unsigned int)FIONBIO)
|
||||
if(request == (int)FIONBIO)
|
||||
{
|
||||
if((*option) != 0)
|
||||
SET_FLAG(fd->fd_Flags,FDF_NON_BLOCKING);
|
||||
else
|
||||
CLEAR_FLAG(fd->fd_Flags,FDF_NON_BLOCKING);
|
||||
}
|
||||
else if (request == (unsigned int)FIOASYNC)
|
||||
else if (request == (int)FIOASYNC)
|
||||
{
|
||||
if((*option) != 0)
|
||||
SET_FLAG(fd->fd_Flags,FDF_ASYNC_IO);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stat_lstat.c,v 1.13 2006-01-08 12:04:24 obarthel Exp $
|
||||
* $Id: stat_lstat.c,v 1.14 2006-09-21 09:24:20 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -271,7 +271,7 @@ lstat(const char * path_name, struct stat * st)
|
||||
time(&mtime);
|
||||
|
||||
st->st_mode = S_IFLNK | S_IRUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
|
||||
st->st_dev = (ULONG)DeviceProc((STRPTR)path_name);
|
||||
st->st_dev = (dev_t)DeviceProc((STRPTR)path_name);
|
||||
st->st_size = link_length;
|
||||
st->st_mtime = mtime;
|
||||
st->st_atime = mtime;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: string_strerror_r.c,v 1.1 2006-09-17 17:36:42 obarthel Exp $
|
||||
* $Id: string_strerror_r.c,v 1.2 2006-09-21 09:24:20 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -41,7 +41,7 @@
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
static char * error_table[EILSEQ - EPERM + 1] =
|
||||
static const char * error_table[EILSEQ - EPERM + 1] =
|
||||
{
|
||||
"Operation not permitted",
|
||||
"No such file or directory",
|
||||
@ -136,7 +136,7 @@ int
|
||||
strerror_r(int number,char * buffer,size_t buffer_size)
|
||||
{
|
||||
int result = -1;
|
||||
char * str;
|
||||
const char * str;
|
||||
size_t len;
|
||||
|
||||
if(number < EPERM || number > EILSEQ)
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: systeminfo_sysinfo.c,v 1.3 2006-07-31 13:32:35 obarthel Exp $
|
||||
* $Id: systeminfo_sysinfo.c,v 1.4 2006-09-21 09:24:20 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -191,7 +191,7 @@ sysinfo(int cmd,char *buf,long buflen)
|
||||
|
||||
#if defined(SOCKET_SUPPORT)
|
||||
{
|
||||
ret = snprintf(buf,buflen,"%u",gethostid());
|
||||
ret = snprintf(buf,buflen,"%lu",gethostid());
|
||||
}
|
||||
#else
|
||||
{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: unistd_common_pathconf.c,v 1.2 2006-09-17 17:53:15 obarthel Exp $
|
||||
* $Id: unistd_common_pathconf.c,v 1.3 2006-09-21 09:24:20 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -173,7 +173,7 @@ __pathconf(struct MsgPort *port,int name)
|
||||
uint32 Bufsize;
|
||||
struct TagItem TagList[2]=
|
||||
{
|
||||
{DC_FHBufferR, &Bufsize},
|
||||
{DC_FHBufferR, (ULONG)&Bufsize},
|
||||
{TAG_DONE, 0}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user