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