* [PATCH] libquota: add missing time.h include
@ 2012-05-22 19:41 Mike Frysinger
2012-05-28 14:21 ` Ted Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2012-05-22 19:41 UTC (permalink / raw)
To: linux-ext4
This code uses time() but doesn't include time.h leading to:
quotaio.c:89:2: warning: implicit declaration of function 'time'
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
lib/quota/quotaio.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/quota/quotaio.c b/lib/quota/quotaio.c
index 481d5f5..6e917f0 100644
--- a/lib/quota/quotaio.c
+++ b/lib/quota/quotaio.c
@@ -11,6 +11,7 @@
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
+#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/file.h>
--
1.7.8.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: libquota: add missing time.h include
2012-05-22 19:41 [PATCH] libquota: add missing time.h include Mike Frysinger
@ 2012-05-28 14:21 ` Ted Ts'o
0 siblings, 0 replies; 2+ messages in thread
From: Ted Ts'o @ 2012-05-28 14:21 UTC (permalink / raw)
To: Mike Frysinger; +Cc: linux-ext4
On Tue, May 22, 2012 at 09:41:50AM -0000, Mike Frysinger wrote:
> This code uses time() but doesn't include time.h leading to:
> quotaio.c:89:2: warning: implicit declaration of function 'time'
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Thanks, applied.
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-28 14:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-22 19:41 [PATCH] libquota: add missing time.h include Mike Frysinger
2012-05-28 14:21 ` Ted Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).