reformat code to be 'std' C

Signed-off-by: Ira Weiny <weiny2@llnl.gov>