datapath: Use 'bool' instead of 'int' where appropriate.