bpfc: Check return value of system()
commitb9c04d953676c63c9e069a9ada1bb589860b470b
authorTobias Klauser <tklauser@distanz.ch>
Mon, 25 Nov 2013 08:24:05 +0000 (25 09:24 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 25 Nov 2013 08:24:05 +0000 (25 09:24 +0100)
treeb0f1034a5fa6635e01e836dca137e8418f9d47b7
parent8dcdd694e879451d7b68e45587772757f8d7da87
bpfc: 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:

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

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