summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorbbergeron <[email protected]>2024-05-22 00:05:07 -0400
committerbbergeron <[email protected]>2024-05-22 00:19:59 -0400
commitee1615fc50542aef29ec42a8731ff690ecd1c27e (patch)
tree968176649a9dbe5d5ab4a4e722e6080c2e0336f6 /main.c
parent1694bcc9b3a12f8265cc163edb21212023e7b538 (diff)
Remove superfluous debug message
This code wasn't meant to be commited.
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/main.c b/main.c
index ee72824..c4c9394 100644
--- a/main.c
+++ b/main.c
@@ -7,7 +7,6 @@
#include <string.h>
#include <sys/socket.h>
#include <sys/un.h>
-#include <time.h>
#include <unistd.h>
#include "common.h"
#include "daemon.h"
@@ -329,9 +328,7 @@ static void close_socket(int sig)
static int main_daemon (int fd, int argc, char **argv)
{
- time_t t;
int err;
- struct tm *tm_info;
struct StreamerOpt opts;
struct sigaction sigact;
@@ -345,13 +342,6 @@ static int main_daemon (int fd, int argc, char **argv)
opts.filename = "./test/stream.m3u8";
- time(&t);
- tm_info = localtime(&t);
-
- char buffer[50];
- strftime(buffer, 50, "Daemon started at %Y-%m-%d %H:%M:%S", tm_info);
- puts(buffer);
-
err = daemon_start(fd, &opts);
unlink(socketname);
free(socketname);