From ca517e8b320c7a31c3a147fb1212ddb33cabd919 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 22 Jun 2017 13:37:40 +0200 Subject: 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 --- misc-utils/flash_otp_write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc-utils/flash_otp_write.c') 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 #include -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; -- cgit v1.2.3