diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2017-06-22 13:37:40 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2017-06-28 10:27:31 +0200 |
commit | ca517e8b320c7a31c3a147fb1212ddb33cabd919 (patch) | |
tree | a26d535836a82ea241dc0389b061176ddfcd8329 /misc-utils/flash_otp_write.c | |
parent | 3029b659e89caa79b6860c3bbe8cbc18b53af678 (diff) |
Eliminate warnings about missing prototypes
This patch eliminates warnings generated by the -Wmissing-prototypes
option. With this flag set, we are now forced to have prototypes for
all global, exported functions, that have to be made visible to the
definitions and we are forced to mark all local functions as static.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'misc-utils/flash_otp_write.c')
-rw-r--r-- | misc-utils/flash_otp_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/flash_otp_write.c b/misc-utils/flash_otp_write.c index 111318d..b02d0b0 100644 --- a/misc-utils/flash_otp_write.c +++ b/misc-utils/flash_otp_write.c @@ -16,7 +16,7 @@ #include <common.h> #include <mtd/mtd-user.h> -ssize_t xread(int fd, void *buf, size_t count) +static ssize_t xread(int fd, void *buf, size_t count) { ssize_t ret, done = 0; |