OpenBSD compliant
This commit is contained in:
parent
e4fbce00e6
commit
a040f114a9
3
Makefile
3
Makefile
@ -19,6 +19,9 @@ all: main
|
||||
|
||||
fresh: clean all
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||
|
||||
main: $(OBJECTS)
|
||||
$(CC) $(OBJECTS) -o $(BIN) $(LDFLAGS) $(CFLAGS)
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
@ -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];
|
||||
|
@ -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);
|
||||
|
@ -314,7 +314,7 @@ void snet_http(int port, int forkval)
|
||||
}
|
||||
}
|
||||
|
||||
setpgrp();
|
||||
setpgid(0, 0);
|
||||
if(forkval < 1)
|
||||
printf("Starting httpd...\n");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user