CMake: requires DATADIR, renamed main.c
This commit is contained in:
parent
9ee50d00b7
commit
1b44249105
2 changed files with 2 additions and 3 deletions
|
@ -3,8 +3,7 @@
|
|||
#include <string.h>
|
||||
#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:
|
||||
|
|
Loading…
Reference in a new issue