Skip to content

Commit 93ced08

Browse files
yamtxiaoxiang781216
authored andcommitted
system/dd/dd_main.c: replace #if defined with #ifdef
Although I personally prefer the former, at least one reviewer preferred the latter. I coundn't find project-wide preferences. Anyway, this is not important for me. Signed-off-by: YAMAMOTO Takashi <[email protected]>
1 parent 78bae4f commit 93ced08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

system/dd/dd_main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
* Included Files
2525
****************************************************************************/
2626

27-
#if defined(__NuttX__)
27+
#ifdef __NuttX__
2828
#include <nuttx/config.h>
2929
#endif
3030

3131
#include <sys/types.h>
3232
#include <sys/stat.h>
3333

34-
#if defined(__NuttX__)
34+
#ifdef __NuttX__
3535
#include <debug.h>
3636
#endif
3737
#include <inttypes.h>
@@ -248,7 +248,7 @@ static int dd_verify(FAR struct dd_s *dd)
248248

249249
if (memcmp(dd->buffer, buffer, dd->nbytes) != 0)
250250
{
251-
#if defined(__NuttX__)
251+
#ifdef __NuttX__
252252
char msg[32];
253253
snprintf(msg, sizeof(msg), "infile sector %d", sector);
254254
lib_dumpbuffer(msg, dd->buffer, dd->nbytes);

0 commit comments

Comments
 (0)