change int to unsigned short

This commit is contained in:
Edi De Candido 2023-05-15 09:22:52 +02:00
parent 5bf18bb3cf
commit 67e555cb28
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#include <sys/sem.h>
#include <sys/stat.h>
#include <custom_sem.h>
#include <structures.h>
#include <errExit.h>
void semOp(int semid, short sem_num, short sem_op) {
@ -17,7 +18,7 @@ int getSemid(){
errExit("semget", "getSemid");
}
int val[] = {0, 0};
unsigned short val[] = {0, 0};
union semun arg;
arg.array = val;