csync: Rename UNSPEC_ERROR to UNSUCCESSFUL.

This commit is contained in:
Andreas Schneider 2013-04-06 18:09:32 +02:00
parent 4e6d54194f
commit b701bf3d9b
3 changed files with 6 additions and 6 deletions

View File

@ -76,7 +76,9 @@ extern "C" {
enum csync_status_codes_e {
CSYNC_STATUS_OK = 0,
CSYNC_STATUS_ERROR = 1000, /* don't use this code, just use in csync_status_ok */
CSYNC_STATUS_ERROR = 1024, /* don't use this code,
just use in csync_status_ok */
CSYNC_STATUS_UNSUCCESSFUL,
CSYNC_STATUS_NO_LOCK,
CSYNC_STATUS_STATEDB_LOAD_ERROR,
CSYNC_STATUS_STATEDB_WRITE_ERROR,
@ -114,8 +116,6 @@ enum csync_status_codes_e {
CSYNC_STATUS_OPENDIR_ERROR,
CSYNC_STATUS_READDIR_ERROR,
CSYNC_STATUS_OPEN_ERROR,
CSYNC_STATUS_UNSPEC_ERROR
};
typedef enum csync_status_codes_e CSYNC_STATUS_CODE;

View File

@ -204,7 +204,7 @@ CSYNC_STATUS_CODE csync_errno_to_csync_status(CSYNC_STATUS_CODE default_err)
break;
/* The custom errnos first. */
case ERRNO_GENERAL_ERROR:
csync_err = CSYNC_STATUS_UNSPEC_ERROR;
csync_err = CSYNC_STATUS_UNSUCCESSFUL;
break;
case ERRNO_LOOKUP_ERROR: /* In Neon: Server or proxy hostname lookup failed */
csync_err = CSYNC_STATUS_LOOKUP_ERROR;

View File

@ -509,8 +509,8 @@ static int _csync_backup_file(CSYNC *ctx, csync_file_stat_t *st, char **duri) {
{
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE,"instruction not allowed: %i %s",
st->instruction, csync_instruction_str(st->instruction));
ctx->status_code = CSYNC_STATUS_UNSPEC_ERROR;
rc = -1;
ctx->status_code = CSYNC_STATUS_UNSUCCESSFUL;
rc = -1;
goto out;
}