617b9b58ef
(semu + seminfo.semmnu) is wrong, because the type of semu is int*. You could fix the offset ((char *)semu + seminfo.semusz), but simply putting the condvars first is more clear.