diff --git a/Makefile b/Makefile index ac9a4e1..929d6e4 100644 --- a/Makefile +++ b/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) diff --git a/src/inset.c b/src/inset.c index 77aba32..9f06eef 100644 --- a/src/inset.c +++ b/src/inset.c @@ -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); diff --git a/src/inset.h b/src/inset.h index 1b8c5fa..efd1be0 100644 --- a/src/inset.h +++ b/src/inset.h @@ -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(); diff --git a/src/math.c b/src/math.c index c0ab665..b511bb7 100644 --- a/src/math.c +++ b/src/math.c @@ -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]; diff --git a/src/math.h b/src/math.h index feb5b27..ec5a7f5 100644 --- a/src/math.h +++ b/src/math.h @@ -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); diff --git a/src/network.c b/src/network.c index 5fe7663..9eb308f 100644 --- a/src/network.c +++ b/src/network.c @@ -314,7 +314,7 @@ void snet_http(int port, int forkval) } } - setpgrp(); + setpgid(0, 0); if(forkval < 1) printf("Starting httpd...\n");