Trivial changes: white space etc.
clang-format and removing whitespace at the ends of lines. Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
This commit is contained in:
parent
714fd09742
commit
2f79c4a590
@ -1,9 +1,9 @@
|
|||||||
CC:= cc
|
CC:= cc
|
||||||
CFLAGS:= -std=gnu99 -DDISABLE_MQTT=1
|
CFLAGS:= -std=gnu99 -DDISABLE_MQTT=1
|
||||||
LIBS:= -lm -lssl -lcrypto -liconv -lsqlite3 -lnetwork -lbsd -lssh
|
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_LUA_TARGET:= haiku
|
||||||
DEPS_JAMLIB_MAKEFILE:= Makefile.linux
|
DEPS_JAMLIB_MAKEFILE:= Makefile.linux
|
||||||
|
@ -17,7 +17,7 @@ extern struct user_record *gUser;
|
|||||||
|
|
||||||
static void open_users_db_or_die(sqlite3 **db) {
|
static void open_users_db_or_die(sqlite3 **db) {
|
||||||
char *err_msg = NULL;
|
char *err_msg = NULL;
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
static const char *create_sql =
|
static const char *create_sql =
|
||||||
"CREATE TABLE IF NOT EXISTS users ("
|
"CREATE TABLE IF NOT EXISTS users ("
|
||||||
"Id INTEGER PRIMARY KEY,"
|
"Id INTEGER PRIMARY KEY,"
|
||||||
@ -60,7 +60,7 @@ static void open_users_db_or_die(sqlite3 **db) {
|
|||||||
sqlite3_free(err_msg);
|
sqlite3_free(err_msg);
|
||||||
sqlite3_close(*db);
|
sqlite3_close(*db);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char *hash_sha256(char *pass, char *salt) {
|
char *hash_sha256(char *pass, char *salt) {
|
||||||
|
@ -191,8 +191,8 @@ char *www_msgs_messagelist(struct user_record *user, int conference, int area, i
|
|||||||
stralloc_cats(&page, "</div>\n");
|
stralloc_cats(&page, "</div>\n");
|
||||||
if (skip + 50 <= mhrs->msg_count) {
|
if (skip + 50 <= mhrs->msg_count) {
|
||||||
snprintf(buffer, sizeof buffer,
|
snprintf(buffer, sizeof buffer,
|
||||||
"<div class=\"msg-summary-next\"><a href=\"%smsgs/%d/%d/?skip=%d\">Next</a></div>\n",
|
"<div class=\"msg-summary-next\"><a href=\"%smsgs/%d/%d/?skip=%d\">Next</a></div>\n",
|
||||||
conf.www_url, conference, area, skip + 50);
|
conf.www_url, conference, area, skip + 50);
|
||||||
stralloc_cats(&page, buffer);
|
stralloc_cats(&page, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user