commit 8ca0855c613f042c45bf282b30f71c2c5575b7f9
parent a25502f3b5c2e6a10160854af4d60a7f00dcd450
Author: Ari Malinen <ari.malinen@gmail.com>
Date: Wed, 11 Jun 2014 15:19:50 +0300
small fixes
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/dcron.c b/dcron.c
@@ -1,3 +1,4 @@
+#define _BSD_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -13,12 +14,10 @@ char config[MAXLEN+1] = "/etc/dcron.conf";
int main(int argc, char *argv[]) {
FILE *fp;
- char *argv0;
+ char *argv0, *col;
char line[MAXLEN+1];
char cmd[MAXLEN+1];
- char *col;
- int date[5];
- int i, l;
+ int i, l, date[5];
time_t t;
struct tm *tm;