Fix code style in capi.

Signed-off-by: Tang Xin <xin.t.tang@intel.com>