example: indicate http error presence with return code 8
authorFelix Fietkau <nbd@openwrt.org>
Sun, 4 May 2014 18:24:18 +0000 (20:24 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 4 May 2014 18:24:18 +0000 (20:24 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
uclient-example.c

index bee5068..57a8f82 100644 (file)
@@ -130,6 +130,7 @@ static void example_header_done(struct uclient *cl)
 
        default:
                request_done(cl);
 
        default:
                request_done(cl);
+               error_ret = 8;
                break;
        }
 }
                break;
        }
 }