Cleanup and fix == error.

This commit is contained in:
Klaas Freitag 2012-12-06 11:39:53 +01:00
parent e997af227c
commit 6d9bd79ccb
2 changed files with 1 additions and 2 deletions

View file

@ -319,7 +319,7 @@ static int http_result_code_from_session() {
static void set_errno_from_session() {
int err = http_result_code_from_session();
if( err = EIO ) {
if( err == EIO ) {
errno = EIO;
} else {
set_errno_from_http_errcode(err);

View file

@ -1102,7 +1102,6 @@ static int _csync_correct_id(CSYNC *ctx) {
c_list_t *seen_dirs = NULL;
c_list_t *list = NULL;
c_rbtree_t *tree = NULL;
const char *replica = NULL;
char *path = NULL;
if (ctx->current != REMOTE_REPLICA) {