From 9ce2ba234f827daf05cee54fe28922bba44888a2 Mon Sep 17 00:00:00 2001 From: Olaf Barthel Date: Mon, 25 Sep 2006 15:12:47 +0000 Subject: [PATCH] - Got rid of some more compiler warnings by introducing function prototypes which were missing and by casting pointers to the expected types. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15150 87f5fb63-7c3d-0410-a384-fd976d0f7a62 --- library/amiga_acrypt.c | 6 +++++- library/amiga_beginio.c | 6 +++++- library/amiga_createextio.c | 6 +++++- library/amiga_createport.c | 6 +++++- library/amiga_createstdio.c | 6 +++++- library/amiga_createtask.c | 6 +++++- library/amiga_deleteextio.c | 6 +++++- library/amiga_deleteport.c | 6 +++++- library/amiga_deletestdio.c | 6 +++++- library/amiga_deletetask.c | 6 +++++- library/amiga_newlist.c | 6 +++++- library/amiga_rexxvars.c | 8 +++++++- library/stdlib_showerror.c | 4 ++-- library/usergroup_crypt.c | 4 ++-- 14 files changed, 66 insertions(+), 16 deletions(-) diff --git a/library/amiga_acrypt.c b/library/amiga_acrypt.c index 628277e..a621274 100644 --- a/library/amiga_acrypt.c +++ b/library/amiga_acrypt.c @@ -1,5 +1,5 @@ /* - * $Id: amiga_acrypt.c,v 1.4 2006-01-08 12:04:22 obarthel Exp $ + * $Id: amiga_acrypt.c,v 1.5 2006-09-25 15:12:47 obarthel Exp $ * * :ts=4 * @@ -49,6 +49,10 @@ /****************************************************************************/ +UBYTE * ACrypt(UBYTE * buffer, const UBYTE * password, const UBYTE * user); + +/****************************************************************************/ + UBYTE * ACrypt(UBYTE * buffer, const UBYTE * password, const UBYTE * user) { diff --git a/library/amiga_beginio.c b/library/amiga_beginio.c index 0fc2897..a97b546 100644 --- a/library/amiga_beginio.c +++ b/library/amiga_beginio.c @@ -1,5 +1,5 @@ /* - * $Id: amiga_beginio.c,v 1.4 2006-01-08 12:04:22 obarthel Exp $ + * $Id: amiga_beginio.c,v 1.5 2006-09-25 15:12:47 obarthel Exp $ * * :ts=4 * @@ -103,6 +103,10 @@ BeginIO(struct IORequest *ior) /****************************************************************************/ +VOID BeginIO(struct IORequest *ior); + +/****************************************************************************/ + VOID BeginIO(struct IORequest *ior) { diff --git a/library/amiga_createextio.c b/library/amiga_createextio.c index 273d78f..916a267 100644 --- a/library/amiga_createextio.c +++ b/library/amiga_createextio.c @@ -1,5 +1,5 @@ /* - * $Id: amiga_createextio.c,v 1.4 2006-01-08 12:04:22 obarthel Exp $ + * $Id: amiga_createextio.c,v 1.5 2006-09-25 15:12:47 obarthel Exp $ * * :ts=4 * @@ -50,6 +50,10 @@ /****************************************************************************/ +struct IORequest * CreateExtIO(CONST struct MsgPort * port, LONG io_size); + +/****************************************************************************/ + struct IORequest * CreateExtIO(CONST struct MsgPort * port, LONG io_size) { diff --git a/library/amiga_createport.c b/library/amiga_createport.c index aed1551..01bc058 100644 --- a/library/amiga_createport.c +++ b/library/amiga_createport.c @@ -1,5 +1,5 @@ /* - * $Id: amiga_createport.c,v 1.4 2006-01-08 12:04:22 obarthel Exp $ + * $Id: amiga_createport.c,v 1.5 2006-09-25 15:12:47 obarthel Exp $ * * :ts=4 * @@ -50,6 +50,10 @@ /****************************************************************************/ +struct MsgPort * CreatePort(CONST_STRPTR name, LONG pri); + +/****************************************************************************/ + struct MsgPort * CreatePort(CONST_STRPTR name, LONG pri) { diff --git a/library/amiga_createstdio.c b/library/amiga_createstdio.c index 9907a78..7f8ec12 100644 --- a/library/amiga_createstdio.c +++ b/library/amiga_createstdio.c @@ -1,5 +1,5 @@ /* - * $Id: amiga_createstdio.c,v 1.4 2006-01-08 12:04:22 obarthel Exp $ + * $Id: amiga_createstdio.c,v 1.5 2006-09-25 15:12:47 obarthel Exp $ * * :ts=4 * @@ -50,6 +50,10 @@ /****************************************************************************/ +struct IOStdReq * CreateStdIO(CONST struct MsgPort * port); + +/****************************************************************************/ + struct IOStdReq * CreateStdIO(CONST struct MsgPort * port) { diff --git a/library/amiga_createtask.c b/library/amiga_createtask.c index 5c88a9a..2a54693 100644 --- a/library/amiga_createtask.c +++ b/library/amiga_createtask.c @@ -1,5 +1,5 @@ /* - * $Id: amiga_createtask.c,v 1.5 2006-01-08 12:04:22 obarthel Exp $ + * $Id: amiga_createtask.c,v 1.6 2006-09-25 15:12:47 obarthel Exp $ * * :ts=4 * @@ -209,6 +209,10 @@ CreateTask(CONST_STRPTR name,LONG pri,CONST APTR init_pc,ULONG stack_size) /****************************************************************************/ +struct Task * CreateTask(CONST_STRPTR name,LONG pri,CONST APTR init_pc,ULONG stack_size); + +/****************************************************************************/ + struct Task * CreateTask(CONST_STRPTR name,LONG pri,CONST APTR init_pc,ULONG stack_size) { diff --git a/library/amiga_deleteextio.c b/library/amiga_deleteextio.c index bce1243..64a8928 100644 --- a/library/amiga_deleteextio.c +++ b/library/amiga_deleteextio.c @@ -1,5 +1,5 @@ /* - * $Id: amiga_deleteextio.c,v 1.4 2006-01-08 12:04:22 obarthel Exp $ + * $Id: amiga_deleteextio.c,v 1.5 2006-09-25 15:12:47 obarthel Exp $ * * :ts=4 * @@ -50,6 +50,10 @@ /****************************************************************************/ +VOID DeleteExtIO(struct IORequest * io); + +/****************************************************************************/ + VOID DeleteExtIO(struct IORequest * io) { diff --git a/library/amiga_deleteport.c b/library/amiga_deleteport.c index a9feb4f..e96c6b9 100644 --- a/library/amiga_deleteport.c +++ b/library/amiga_deleteport.c @@ -1,5 +1,5 @@ /* - * $Id: amiga_deleteport.c,v 1.4 2006-01-08 12:04:22 obarthel Exp $ + * $Id: amiga_deleteport.c,v 1.5 2006-09-25 15:12:47 obarthel Exp $ * * :ts=4 * @@ -50,6 +50,10 @@ /****************************************************************************/ +VOID DeletePort(struct MsgPort * port); + +/****************************************************************************/ + VOID DeletePort(struct MsgPort * port) { diff --git a/library/amiga_deletestdio.c b/library/amiga_deletestdio.c index 2e2d807..328f5da 100644 --- a/library/amiga_deletestdio.c +++ b/library/amiga_deletestdio.c @@ -1,5 +1,5 @@ /* - * $Id: amiga_deletestdio.c,v 1.4 2006-01-08 12:04:22 obarthel Exp $ + * $Id: amiga_deletestdio.c,v 1.5 2006-09-25 15:12:47 obarthel Exp $ * * :ts=4 * @@ -50,6 +50,10 @@ /****************************************************************************/ +VOID DeleteStdIO(struct IOStdReq * io); + +/****************************************************************************/ + VOID DeleteStdIO(struct IOStdReq * io) { diff --git a/library/amiga_deletetask.c b/library/amiga_deletetask.c index 5ab4772..6726f47 100644 --- a/library/amiga_deletetask.c +++ b/library/amiga_deletetask.c @@ -1,5 +1,5 @@ /* - * $Id: amiga_deletetask.c,v 1.4 2006-01-08 12:04:22 obarthel Exp $ + * $Id: amiga_deletetask.c,v 1.5 2006-09-25 15:12:47 obarthel Exp $ * * :ts=4 * @@ -63,6 +63,10 @@ DeleteTask(struct Task *tc) /****************************************************************************/ +VOID DeleteTask(struct Task *tc); + +/****************************************************************************/ + VOID DeleteTask(struct Task *tc) { diff --git a/library/amiga_newlist.c b/library/amiga_newlist.c index 8e0ed88..1bbac7d 100644 --- a/library/amiga_newlist.c +++ b/library/amiga_newlist.c @@ -1,5 +1,5 @@ /* - * $Id: amiga_newlist.c,v 1.3 2006-01-08 12:04:22 obarthel Exp $ + * $Id: amiga_newlist.c,v 1.4 2006-09-25 15:12:47 obarthel Exp $ * * :ts=4 * @@ -43,6 +43,10 @@ /****************************************************************************/ +VOID NewList(struct List *lh); + +/****************************************************************************/ + VOID NewList(struct List *lh) { diff --git a/library/amiga_rexxvars.c b/library/amiga_rexxvars.c index 4a98f51..a24b62d 100644 --- a/library/amiga_rexxvars.c +++ b/library/amiga_rexxvars.c @@ -1,5 +1,5 @@ /* - * $Id: amiga_rexxvars.c,v 1.8 2006-09-22 09:02:51 obarthel Exp $ + * $Id: amiga_rexxvars.c,v 1.9 2006-09-25 15:12:47 obarthel Exp $ * * :ts=4 * @@ -68,6 +68,12 @@ static struct RexxSysIFace * IRexxSys; /****************************************************************************/ +BOOL CheckRexxMsg(struct RexxMsg *message); +LONG GetRexxVar(struct RexxMsg *message,STRPTR variable_name,STRPTR *buffer_pointer); +LONG SetRexxVar(struct RexxMsg *message,STRPTR variable_name,STRPTR value,ULONG length); + +/****************************************************************************/ + CLIB_CONSTRUCTOR(rexxvars_init) { ENTER(); diff --git a/library/stdlib_showerror.c b/library/stdlib_showerror.c index b7ceef9..1df9bc0 100644 --- a/library/stdlib_showerror.c +++ b/library/stdlib_showerror.c @@ -1,5 +1,5 @@ /* - * $Id: stdlib_showerror.c,v 1.13 2006-01-08 12:04:26 obarthel Exp $ + * $Id: stdlib_showerror.c,v 1.14 2006-09-25 15:12:47 obarthel Exp $ * * :ts=4 * @@ -201,7 +201,7 @@ __show_error(const char * message) } else { - if(GetProgramName(program_name,sizeof(program_name))) + if(GetProgramName((STRPTR)program_name,sizeof(program_name))) title_string = FilePart((STRPTR)program_name); else title_string = (STRPTR)"Error"; diff --git a/library/usergroup_crypt.c b/library/usergroup_crypt.c index aaa5fb9..dde3823 100644 --- a/library/usergroup_crypt.c +++ b/library/usergroup_crypt.c @@ -1,5 +1,5 @@ /* - * $Id: usergroup_crypt.c,v 1.5 2006-09-22 09:02:51 obarthel Exp $ + * $Id: usergroup_crypt.c,v 1.6 2006-09-25 15:12:47 obarthel Exp $ * * :ts=4 * @@ -79,7 +79,7 @@ crypt(const char *key,const char *salt) #endif /* CHECK_FOR_NULL_POINTERS */ PROFILE_OFF(); - result = (char *)__crypt((STRPTR)key,(STRPTR)salt); + result = (char *)__crypt((UBYTE *)key,(UBYTE *)salt); PROFILE_ON(); SHOWSTRING(result);