changed include

This commit is contained in:
Lorenzo Bianchi 2023-05-14 18:10:44 +02:00
parent 45ee458930
commit 5949008f0a
5 changed files with 9 additions and 8 deletions

View File

@ -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"

View File

@ -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;

View File

@ -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);

View File

@ -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};

View File

@ -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) {