Using right type for data bytes:
authorgumartinm <gustavo@gumartinm.name>
Mon, 17 Dec 2012 20:29:33 +0000 (21:29 +0100)
committergumartinm <gustavo@gumartinm.name>
Mon, 17 Dec 2012 20:29:33 +0000 (21:29 +0100)
commit8b50149598d45f22ca4e30b1ccc14404b2216621
treeac66da11ed25f8864fc48d750d7167353076beca
parent572090e9a2daac6fd9092831e7d1070fe676152b
Using right type for data bytes:

* char:
It is the type that makes up C strings like "abcde"
It also works out as a number value, but it is unspecified whether that value is treated as signed or unsigned. Beware character comparisons through inequalities - although if you limit yourself to ASCII (0-127) you're just about safe.

* signed char:
Gives you at least the -128 to 127 range.

* unsigned char:
Gives you at least the 0 to 255 range.

There is this warning: pointer targets in passing argument 1 of â€˜system’ differ in signedness
I guess, it does not hurt me.
Daemon/javafork.c
Daemon/javafork.h