From 1b4424910532dca45155bb5eb917f4da0a44f80c Mon Sep 17 00:00:00 2001 From: Andrew Karpow Date: Fri, 8 Nov 2013 15:13:10 +0100 Subject: [PATCH] CMake: requires DATADIR, renamed main.c --- src/http_server.c | 5 ++--- src/{main.c => ympd.c} | 0 2 files changed, 2 insertions(+), 3 deletions(-) rename src/{main.c => ympd.c} (100%) diff --git a/src/http_server.c b/src/http_server.c index bb6a1d8..8a25271 100644 --- a/src/http_server.c +++ b/src/http_server.c @@ -3,8 +3,7 @@ #include #include "http_server.h" -#define INSTALL_DATADIR "/home/andy/workspace/ympd" -#define LOCAL_RESOURCE_PATH INSTALL_DATADIR"/htdocs" +#define LOCAL_RESOURCE_PATH DATADIR"/htdocs" char *resource_path = LOCAL_RESOURCE_PATH; struct serveable { @@ -38,7 +37,7 @@ int callback_http(struct libwebsocket_context *context, void *in, size_t len) { char buf[256]; - int n; + size_t n; switch (reason) { case LWS_CALLBACK_HTTP: diff --git a/src/main.c b/src/ympd.c similarity index 100% rename from src/main.c rename to src/ympd.c -- 2.20.1