From 960101f8521ba988f5aeee7ca4ffd7c0c9b66552 Mon Sep 17 00:00:00 2001 From: Lauri Tirkkonen Date: Fri, 4 Jan 2019 20:52:26 +0200 Subject: [PATCH] cmd/news: remove -Wno-implicit-function-declaration --- usr/src/cmd/news/Makefile | 1 - usr/src/cmd/news/news.c | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/usr/src/cmd/news/Makefile b/usr/src/cmd/news/Makefile index 96d93f1c7d..4b583fd6b6 100644 --- a/usr/src/cmd/news/Makefile +++ b/usr/src/cmd/news/Makefile @@ -29,7 +29,6 @@ include ../Makefile.cmd VARNEWSD= $(ROOT)/var/news DIRS= $(VARNEWSD) -CERRWARN += -Wno-implicit-function-declaration CERRWARN += -Wno-parentheses .KEEP_STATE: diff --git a/usr/src/cmd/news/news.c b/usr/src/cmd/news/news.c index 35a5f2c729..55bfe40304 100644 --- a/usr/src/cmd/news/news.c +++ b/usr/src/cmd/news/news.c @@ -42,12 +42,15 @@ #include #include #include +#include #include #include +#include #include #include #include #include +#include #define INDENT 3 #define RD_WR_ALL (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) @@ -355,9 +358,7 @@ late_news(void(*emit)(), int update) char fname[50], *cp; struct stat newstime; int fd; - struct { - long actime, modtime; - } utb; + struct utimbuf utb; extern char *getenv(); /* Determine the time when last called */ -- 2.11.4.GIT