trafgen: Check return value of system()
commit6feb59668308a326ec979b7992613138b986c985
authorTobias Klauser <tklauser@distanz.ch>
Mon, 25 Nov 2013 08:26:20 +0000 (25 09:26 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 25 Nov 2013 08:26:46 +0000 (25 09:26 +0100)
treef7a3cedee0966cf8ce213dcfe0b486698fe42d70
parentb9c04d953676c63c9e069a9ada1bb589860b470b
trafgen: Check return value of system()

Check the return value of system() when invoking CPP in the BPF
parser and bail out in case of an error.

This fixes the following compiler warning:

trafgen_parser.y:598:9: warning: ignoring return value of â€˜system’, declared with attribute warn_unused_result [-Wunused-result]

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
trafgen_parser.y