]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - client_common.c
Consolidate EOF error codes.
[paraslash.git] / client_common.c
index 95e59fd29de2015fcc65443a4ffc6442387ec0f8..2a6b47d6b2b095daadf05659eafd52abfb218b35 100644 (file)
@@ -398,12 +398,12 @@ static int client_post_monitor(struct sched *s, void *context)
                        char *buf2;
                        size_t sz;
                        ret = btr_node_status(ct->btrn[1], 0, BTR_NT_LEAF);
-                       if (ret == -E_BTR_EOF) {
+                       if (ret == -E_EOF) {
                                /* empty blob data packet indicates EOF */
                                PARA_INFO_LOG("blob sent\n");
                                ret = send_sb(ct, 1, NULL, 0, SBD_BLOB_DATA, true);
                                if (ret >= 0)
-                                       ret = -E_BTR_EOF;
+                                       ret = -E_EOF;
                        }
                        if (ret < 0)
                                goto close1;