Trivial whitespace cleanups

Delete trailing whitespace at the ends of lines;
ensure files have newlines at the end.

Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
This commit is contained in:
Dan Cross 2018-10-11 10:51:07 +00:00 committed by Andrew Pamment
parent 1c7849b724
commit d8c32639e4
7 changed files with 12 additions and 12 deletions

View File

@ -7,11 +7,11 @@ all: magicka
magicka:
cd src && $(MAKE) -f GNUmakefile.$(OS)
www:
www:
cd src && $(MAKE) -f GNUmakefile.$(OS) www
clean:
cd src && $(MAKE) -f GNUmakefile.$(OS) clean
cleanwww:
cd src && $(MAKE) -f GNUmakefile.$(OS) clean

View File

@ -59,7 +59,7 @@ read -e location
printstuff "Please enter the name of your BBS:"
read -e bbsname
read -e bbsname
PLATFORM=`uname`

View File

@ -1,6 +1,6 @@
CC:= gcc
CFLAGS:= -std=gnu99 -I/usr/local/include
LIBS:= -L/usr/local/lib -lsqlite3 -lm -ldl -lssl -lcrypto -lssh -lmosquitto -lnsl -lsocket
LIBS:= -L/usr/local/lib -lsqlite3 -lm -ldl -lssl -lcrypto -lssh -lmosquitto -lnsl -lsocket
DEPS_LUA_TARGET:= solaris
DEPS_JAMLIB_MAKEFILE:= Makefile.sunos

View File

@ -393,4 +393,4 @@ int hashmap_length(map_t in) {
return m->size;
else
return 0;
}
}

View File

@ -73,4 +73,4 @@ int main(char *argv, int argc) {
hashmap_free(mymap);
return 1;
}
}

View File

@ -5,13 +5,13 @@
#include "stralloc.h"
int stralloc_ready(stralloc *sa, size_t n) {
size_t na;
int stralloc_ready(stralloc *sa, size_t n) {
size_t na;
char *ns;
assert(sa != NULL);
if (sa->s == NULL) {
sa->len = 0;
if (sa->s == NULL) {
sa->len = 0;
sa->a = n;
sa->s = malloc(n);
return sa != NULL;
@ -25,7 +25,7 @@ int stralloc_ready(stralloc *sa, size_t n) {
memset(ns + sa->len, 0, na - sa->len);
sa->a = na;
sa->s = ns;
return 1;
return 1;
}
int stralloc_starts(stralloc *sa, const char *s) {

View File

@ -24,7 +24,7 @@ extern int stralloc_cat_long(stralloc *sa, long v);
extern int stralloc_cat_byte(stralloc *sa, int b);
extern int stralloc_cat_Byte(stralloc *sa, int b);
static inline int stralloc_readyplus(stralloc *sa, size_t n) {
static inline int stralloc_readyplus(stralloc *sa, size_t n) {
assert(sa != NULL);
return stralloc_ready(sa, sa->len + n);
}