mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Fixed a warning for a possibly uninitialized variable in the new iob hook
code. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14838 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: dirent_closedir.c,v 1.5 2005-02-03 16:56:15 obarthel Exp $
|
||||
* $Id: dirent_closedir.c,v 1.6 2005-02-21 16:09:28 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -51,7 +51,6 @@ int
|
||||
closedir(DIR * directory_pointer)
|
||||
{
|
||||
struct DirectoryHandle * dh;
|
||||
struct Node * node;
|
||||
int result = -1;
|
||||
|
||||
ENTER();
|
||||
@ -96,6 +95,8 @@ closedir(DIR * directory_pointer)
|
||||
|
||||
#if defined(UNIX_PATH_SEMANTICS)
|
||||
{
|
||||
struct Node * node;
|
||||
|
||||
while((node = RemHead((struct List *)&dh->dh_VolumeList)) != NULL)
|
||||
free(node);
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: dirent_opendir.c,v 1.5 2005-02-03 16:56:15 obarthel Exp $
|
||||
* $Id: dirent_opendir.c,v 1.6 2005-02-21 16:09:39 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -89,7 +89,6 @@ opendir(const char * path_name)
|
||||
#endif /* UNIX_PATH_SEMANTICS */
|
||||
struct DirectoryHandle * dh = NULL;
|
||||
DIR * result = NULL;
|
||||
struct Node * node;
|
||||
|
||||
ENTER();
|
||||
|
||||
@ -123,6 +122,8 @@ opendir(const char * path_name)
|
||||
|
||||
#if defined(UNIX_PATH_SEMANTICS)
|
||||
{
|
||||
struct Node * node;
|
||||
|
||||
NewList((struct List *)&dh->dh_VolumeList);
|
||||
|
||||
if(__unix_path_semantics)
|
||||
@ -256,6 +257,8 @@ opendir(const char * path_name)
|
||||
|
||||
#if defined(UNIX_PATH_SEMANTICS)
|
||||
{
|
||||
struct Node * node;
|
||||
|
||||
while((node = RemHead((struct List *)&dh->dh_VolumeList)) != NULL)
|
||||
free(node);
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio_iobhookentry.c,v 1.3 2005-02-20 13:19:40 obarthel Exp $
|
||||
* $Id: stdio_iobhookentry.c,v 1.4 2005-02-21 16:09:41 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -62,6 +62,9 @@ __iob_hook_entry(
|
||||
if(fd == NULL)
|
||||
{
|
||||
fam->fam_Error = EBADF;
|
||||
|
||||
result = -1;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdlib_assertion_failure.c,v 1.6 2005-01-09 09:40:32 obarthel Exp $
|
||||
* $Id: stdlib_assertion_failure.c,v 1.7 2005-02-21 16:09:44 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -93,10 +93,11 @@ __assertion_failure(
|
||||
|
||||
es.es_StructSize = sizeof(es);
|
||||
es.es_Title = (STRPTR)__program_name;
|
||||
es.es_TextFormat = (STRPTR)"Assertion of expression\n'%s'\nfailed in file '%s', line %ld";
|
||||
es.es_TextFormat = (STRPTR)"Assertion of expression\n\"%s\"\nfailed in file \"%s\", line %ld.";
|
||||
es.es_GadgetFormat = (STRPTR)"Sorry";
|
||||
|
||||
EasyRequest(NULL,&es,NULL,expression,file_name,line_number);
|
||||
EasyRequest(NULL,&es,NULL,
|
||||
expression,file_name,line_number);
|
||||
|
||||
#if defined(__amigaos4__)
|
||||
{
|
||||
@ -113,7 +114,7 @@ __assertion_failure(
|
||||
fprintf(stderr,"[%s] ",__program_name);
|
||||
|
||||
fprintf(stderr,
|
||||
"%s:%d: failed assertion '%s'\n",
|
||||
"%s:%d: failed assertion \"%s\".\n",
|
||||
file_name,
|
||||
line_number,
|
||||
expression);
|
||||
|
||||
Reference in New Issue
Block a user