diff --git a/src/GNUmakefile.haiku b/src/GNUmakefile.haiku index 5b9d3a0..3e05fe5 100644 --- a/src/GNUmakefile.haiku +++ b/src/GNUmakefile.haiku @@ -1,9 +1,9 @@ CC:= cc -CFLAGS:= -std=gnu99 -DDISABLE_MQTT=1 +CFLAGS:= -std=gnu99 -DDISABLE_MQTT=1 LIBS:= -lm -lssl -lcrypto -liconv -lsqlite3 -lnetwork -lbsd -lssh -EXTRAOBJS:= strlcpy/strlcpy.o strlcpy/strlcat.o +EXTRAOBJS:= strlcpy/strlcpy.o strlcpy/strlcat.o -LIBTOOLIZE:= libtoolize +LIBTOOLIZE:= libtoolize DEPS_LUA_TARGET:= haiku DEPS_JAMLIB_MAKEFILE:= Makefile.linux diff --git a/src/users.c b/src/users.c index 147cbd8..689fa89 100644 --- a/src/users.c +++ b/src/users.c @@ -17,7 +17,7 @@ extern struct user_record *gUser; static void open_users_db_or_die(sqlite3 **db) { char *err_msg = NULL; - int rc = 0; + int rc = 0; static const char *create_sql = "CREATE TABLE IF NOT EXISTS users (" "Id INTEGER PRIMARY KEY," @@ -60,7 +60,7 @@ static void open_users_db_or_die(sqlite3 **db) { sqlite3_free(err_msg); sqlite3_close(*db); exit(1); - } + } } char *hash_sha256(char *pass, char *salt) { diff --git a/src/www_msgs.c b/src/www_msgs.c index 9654062..c2d32a2 100644 --- a/src/www_msgs.c +++ b/src/www_msgs.c @@ -191,8 +191,8 @@ char *www_msgs_messagelist(struct user_record *user, int conference, int area, i stralloc_cats(&page, "\n"); if (skip + 50 <= mhrs->msg_count) { snprintf(buffer, sizeof buffer, - "
\n", - conf.www_url, conference, area, skip + 50); + "\n", + conf.www_url, conference, area, skip + 50); stralloc_cats(&page, buffer); }