changed include
This commit is contained in:
parent
45ee458930
commit
5949008f0a
|
@ -1,8 +1,8 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/ipc.h>
|
||||
|
||||
#include <../inc/server.h>
|
||||
#include <../inc/structures.h>
|
||||
#include <server.h>
|
||||
#include <structures.h>
|
||||
|
||||
#define KEYFILE "../src/F4server"
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <../inc/custom_signal.h>
|
||||
|
||||
#include <custom_signal.h>
|
||||
|
||||
void serverSigHandler(int sig) {
|
||||
static int sigint_count = DEFAULT_SIGINT;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <../inc/errExit.h>
|
||||
#include <errExit.h>
|
||||
|
||||
void errExit(char *func, char *where) {
|
||||
fprintf(stderr, "\033[91m<Error>\033[39m %s failed in %s\n", func, where);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include <sys/sem.h>
|
||||
|
||||
#include <../inc/custom_sem.h>
|
||||
#include <../inc/errExit.h>
|
||||
#include <custom_sem.h>
|
||||
#include <errExit.h>
|
||||
|
||||
void semOp(int semid, short sem_num, short sem_op) {
|
||||
struct sembuf sop = {.sem_num = sem_num, .sem_op = sem_op, .sem_flg = 0};
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <../inc/server.h>
|
||||
#include <../inc/errExit.h>
|
||||
#include <server.h>
|
||||
#include <errExit.h>
|
||||
|
||||
input_server_t check_input(int argc, char *argv[]){
|
||||
if (argc < 5) {
|
||||
|
|
Loading…
Reference in New Issue