gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH 2/2] Fixes compiler warning in ntpshmmon.


From: Fred Wright
Subject: [gpsd-dev] [PATCH 2/2] Fixes compiler warning in ntpshmmon.
Date: Fri, 5 Aug 2016 17:20:41 -0700

Commit 2125024d47e9625d764464f7f8990610d8dcb39d added a call to
memset() without the needed include of string.h.

TESTED:
Now builds without the warning.
---
 ntpshmmon.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ntpshmmon.c b/ntpshmmon.c
index ec51d27..f810df8 100644
--- a/ntpshmmon.c
+++ b/ntpshmmon.c
@@ -6,6 +6,7 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <getopt.h>
 #include <limits.h>
 #include <unistd.h>
-- 
2.9.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]