mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Correct #if to #ifdef when the macro can be undefined. Fix bug in AT24XX driver: it should compare AT24XX_ADDRSIZE to 2.
This commit is contained in:
@@ -104,7 +104,7 @@ int fgetpos(FAR FILE *stream, FAR fpos_t *pos)
|
||||
{
|
||||
long position;
|
||||
|
||||
#if CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG
|
||||
if (!stream || !pos)
|
||||
{
|
||||
set_errno(EINVAL);
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
|
||||
int fsetpos(FAR FILE *stream, FAR fpos_t *pos)
|
||||
{
|
||||
#if CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG
|
||||
if (!stream || !pos)
|
||||
{
|
||||
set_errno(EINVAL);
|
||||
|
||||
Reference in New Issue
Block a user