Skip to content

Commit

Permalink
Include missing stdlib.h
Browse files Browse the repository at this point in the history
malloc()/free() are part of stdlib.h, hence include it where needed.

Signed-off-by: Stefan Reinauer <[email protected]>
  • Loading branch information
reinauer committed Nov 21, 2020
1 parent 7340e7a commit 309e329
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions SerialFlash.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "project.h"
#include "usbdriver.h"
#include <sys/stat.h>
#include <stdlib.h>

extern int m_isCanceled;
extern int m_bProtectAfterWritenErase;
Expand Down
1 change: 1 addition & 0 deletions board.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "FlashCommand.h"
#include "project.h"
#include "usbdriver.h"
#include <stdlib.h>
#define SerialFlash_FALSE -1
#define SerialFlash_TRUE 1
#define min(a, b) (a > b ? b : a)
Expand Down
1 change: 1 addition & 0 deletions dpcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <fcntl.h>
#include <getopt.h>
#include <pthread.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/time.h>
Expand Down
1 change: 1 addition & 0 deletions project.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <ctype.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdint.h>

#include <pthread.h>
Expand Down

0 comments on commit 309e329

Please sign in to comment.