Skip to content
Snippets Groups Projects
Commit fd0e5b99 authored by patacongo's avatar patacongo
Browse files

remove warning

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2060 42af7a65-404d-4744-a932-0658087f49c3
parent 3aad40f1
No related branches found
No related tags found
No related merge requests found
/****************************************************************************
* lib/lib_fclose.c
*
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
......@@ -62,14 +62,14 @@ int fclose(FAR FILE *stream)
{
ret = close(stream->fs_filedes);
}
#ifdef CONFIG_CPP_HAVE_WARNING
# warning REVIEW for race conditions
#endif
#if CONFIG_STDIO_BUFFER_SIZE > 0
/* Destroy the semaphore */
sem_destroy(&stream->fs_sem);
/* release the buffer */
if (stream->fs_bufstart)
{
free(stream->fs_bufstart);
......@@ -92,6 +92,7 @@ int fclose(FAR FILE *stream)
stream->fs_filedes = -1;
}
return ret;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment