change int to unsigned short
This commit is contained in:
parent
5bf18bb3cf
commit
67e555cb28
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue