]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/cgo: use tabs to indent _cgoPREFIX_Cfunc__CMalloc function body
authorTobias Klauser <tklauser@distanz.ch>
Sun, 11 Apr 2021 12:53:18 +0000 (14:53 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Mon, 12 Apr 2021 05:12:28 +0000 (05:12 +0000)
All other _cgoPREFIX_Cfunc_* functions are indented using tabs.

Change-Id: Ic5cfccd3000d34d0bbe08d035f18640af5e05473
Reviewed-on: https://go-review.googlesource.com/c/go/+/308993
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/cgo/out.go

index 8e83f02202f73c15a92b8a1b5fce6f4b18236103..d0a7369c94f352ece4d13754ecc527f5b817707d 100644 (file)
@@ -1746,12 +1746,12 @@ Slice _cgoPREFIX_Cfunc_GoBytes(char *p, int32_t n) {
 
 extern void runtime_throw(const char *);
 void *_cgoPREFIX_Cfunc__CMalloc(size_t n) {
-        void *p = malloc(n);
-        if(p == NULL && n == 0)
-                p = malloc(1);
-        if(p == NULL)
-                runtime_throw("runtime: C malloc failed");
-        return p;
+       void *p = malloc(n);
+       if(p == NULL && n == 0)
+               p = malloc(1);
+       if(p == NULL)
+               runtime_throw("runtime: C malloc failed");
+       return p;
 }
 
 struct __go_type_descriptor;