1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-11-30 08:29:53 +00:00

CMake: requires DATADIR, renamed main.c

This commit is contained in:
Andrew Karpow 2013-11-08 15:13:10 +01:00
parent 9ee50d00b7
commit 1b44249105
2 changed files with 2 additions and 3 deletions

View File

@ -3,8 +3,7 @@
#include <string.h> #include <string.h>
#include "http_server.h" #include "http_server.h"
#define INSTALL_DATADIR "/home/andy/workspace/ympd" #define LOCAL_RESOURCE_PATH DATADIR"/htdocs"
#define LOCAL_RESOURCE_PATH INSTALL_DATADIR"/htdocs"
char *resource_path = LOCAL_RESOURCE_PATH; char *resource_path = LOCAL_RESOURCE_PATH;
struct serveable { struct serveable {
@ -38,7 +37,7 @@ int callback_http(struct libwebsocket_context *context,
void *in, size_t len) void *in, size_t len)
{ {
char buf[256]; char buf[256];
int n; size_t n;
switch (reason) { switch (reason) {
case LWS_CALLBACK_HTTP: case LWS_CALLBACK_HTTP: