OpenBSD compliant

This commit is contained in:
Pentium44 2021-04-08 15:58:05 -07:00
parent e4fbce00e6
commit a040f114a9
6 changed files with 8 additions and 4 deletions

View File

@ -19,6 +19,9 @@ all: main
fresh: clean all
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
main: $(OBJECTS)
$(CC) $(OBJECTS) -o $(BIN) $(LDFLAGS) $(CFLAGS)

View File

@ -11,6 +11,8 @@
#include "vars.h"
#include "util.h"
BQ s_bqf [MAX_BQ_FUNCTIONS];
void s_inset(int index, char *function)
{
strcpy(s_bqf[index].function, function);

View File

@ -16,8 +16,6 @@ struct s_bq
};
typedef struct s_bq BQ;
BQ s_bqf [MAX_BQ_FUNCTIONS];
void s_set_bq(int index, char *function);
int get_bq_count();

View File

@ -9,7 +9,6 @@
#include "math.h"
#include "util.h"
typedef struct s_expr EXPR;
EXPR sexpr [MAX_EXPR_ARGS];
static char expr_out[(MAX_EXPR_LEN*2)+1];

View File

@ -10,5 +10,7 @@ struct s_expr
char arg[MAX_EXPR_LEN+1];
};
typedef struct s_expr EXPR;
void set_expr_arg(int index, char *arg);
char *ss_expr(char *string);

View File

@ -314,7 +314,7 @@ void snet_http(int port, int forkval)
}
}
setpgrp();
setpgid(0, 0);
if(forkval < 1)
printf("Starting httpd...\n");