Return zero on success, error code on error

The functions that returned a "boolean" int value to indicate sucess or
failure now return zero (SCV_OK) on success or an error code on error.