Rename leave to cleanup
authorPatrick Gansterer <paroga@paroga.com>
Wed, 26 Feb 2014 20:56:59 +0000 (21:56 +0100)
committerAndy Green <andy.green@linaro.org>
Thu, 27 Feb 2014 13:16:00 +0000 (21:16 +0800)
The name ‘leave’ can not be used on some Windows CE platforms, so rename it.

lib/handshake.c

index f45ee53..4be448a 100644 (file)
@@ -246,7 +246,7 @@ http_postbody:
                                        if (!wsi->u.http.post_buffer) {
                                                lwsl_err("Unable to allocate post buffer\n");
                                                n = -1;
-                                               goto leave;
+                                               goto cleanup;
                                        }
                                }
 
@@ -271,7 +271,7 @@ http_postbody:
                                                    wsi->user_space, uri_ptr, uri_len);
                                }
 
-leave:
+cleanup:
                                /* now drop the header info we kept a pointer to */
                                if (ah)
                                        free(ah);