correcting some minor issues

This commit is contained in:
gottox@rootkit.lan 2007-12-27 19:22:34 +01:00
parent d86557e66a
commit cb129c84ba
2 changed files with 5 additions and 3 deletions

View file

@ -130,6 +130,7 @@ doamp(const char *begin, const char *end, int newblock) {
fputs("&",stdout); fputs("&",stdout);
return 1; return 1;
} }
unsigned int unsigned int
dohtml(const char *begin, const char *end, int newblock) { dohtml(const char *begin, const char *end, int newblock) {
const char *p, *tag, *tagend; const char *p, *tag, *tagend;
@ -156,6 +157,7 @@ dohtml(const char *begin, const char *end, int newblock) {
} }
return 0; return 0;
} }
unsigned int unsigned int
dolineprefix(const char *begin, const char *end, int newblock) { dolineprefix(const char *begin, const char *end, int newblock) {
unsigned int i, j, l; unsigned int i, j, l;
@ -174,7 +176,7 @@ dolineprefix(const char *begin, const char *end, int newblock) {
if(!(buffer = malloc(BUFFERSIZE))) if(!(buffer = malloc(BUFFERSIZE)))
eprint("Malloc failed."); eprint("Malloc failed.");
buffer[0] = '\0'; buffer[0] = '\0';
puts(lineprefix[i].before); fputs(lineprefix[i].before,stdout);
for(j = 0, p += l; p != end; p++, j++) { for(j = 0, p += l; p != end; p++, j++) {
ADDC(buffer,j) = *p; ADDC(buffer,j) = *p;
if(*p == '\n') { if(*p == '\n') {

View file

@ -10,7 +10,7 @@ INCS = -I. -I/usr/include
LIBS = -L/usr/lib LIBS = -L/usr/lib
# flags # flags
CFLAGS = -Os -Wall -Werror ${INCS} -DVERSION=\"${VERSION}\" CFLAGS = -Os -Wall -Werror -ansi ${INCS} -DVERSION=\"${VERSION}\"
LDFLAGS = ${LIBS} LDFLAGS = ${LIBS}
# compiler # compiler