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:
Dan Cross 2018-10-19 13:58:34 +00:00 committed by Andrew Pamment
parent 714fd09742
commit 2f79c4a590
3 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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) {

View File

@ -191,8 +191,8 @@ char *www_msgs_messagelist(struct user_record *user, int conference, int area, i
stralloc_cats(&page, "</div>\n");
if (skip + 50 <= mhrs->msg_count) {
snprintf(buffer, sizeof buffer,
"<div class=\"msg-summary-next\"><a href=\"%smsgs/%d/%d/?skip=%d\">Next</a></div>\n",
conf.www_url, conference, area, skip + 50);
"<div class=\"msg-summary-next\"><a href=\"%smsgs/%d/%d/?skip=%d\">Next</a></div>\n",
conf.www_url, conference, area, skip + 50);
stralloc_cats(&page, buffer);
}