use C99 (int[]){x} anonymous arrays in setsockopt

C99 allows us to create anonymous arrays which we can use to
eliminate the extra 'int val = x' in calls that would use it.