cleanup includes and remove unused fields from struct feed - tscrape - twitter scraper
(HTM) git clone git://git.codemadness.org/tscrape
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0e4b407d02da9f565a5ba6def26db22565925cbd
(DIR) parent c0ae8d7b1f540d5cda35df1abe323aecf8ab3ff5
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 1 Feb 2020 15:13:33 +0100
cleanup includes and remove unused fields from struct feed
Diffstat:
M strlcat.c | 1 -
M strlcpy.c | 1 -
M tscrape.c | 5 +----
M util.h | 7 +++----
4 files changed, 4 insertions(+), 10 deletions(-)
---
(DIR) diff --git a/strlcat.c b/strlcat.c
@@ -16,7 +16,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
#include <string.h>
/*
(DIR) diff --git a/strlcpy.c b/strlcpy.c
@@ -16,7 +16,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
#include <string.h>
/*
(DIR) diff --git a/tscrape.c b/tscrape.c
@@ -2,12 +2,9 @@
#include <ctype.h>
#include <err.h>
-#include <errno.h>
-#include <limits.h>
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
-#include <time.h>
+#include <strings.h>
#include <unistd.h>
#include "xml.h"
(DIR) diff --git a/util.h b/util.h
@@ -1,5 +1,6 @@
-#include <stdint.h>
-#include <time.h>
+#include <sys/types.h>
+
+#include <stdio.h>
#ifdef __OpenBSD__
#include <unistd.h>
@@ -17,8 +18,6 @@ struct feed {
char * name; /* feed name */
unsigned long totalnew; /* amount of new items per feed */
unsigned long total; /* total items */
- time_t timenewest;
- char timenewestformat[64];
};
enum {