From 954bd8203bfe3033b9794ad4ec2c82cfd6be1414 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 11 Apr 2021 14:53:18 +0200 Subject: [PATCH] cmd/cgo: use tabs to indent _cgoPREFIX_Cfunc__CMalloc function body 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 Run-TryBot: Tobias Klauser TryBot-Result: Go Bot Reviewed-by: Ian Lance Taylor --- src/cmd/cgo/out.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cmd/cgo/out.go b/src/cmd/cgo/out.go index 8e83f02202..d0a7369c94 100644 --- a/src/cmd/cgo/out.go +++ b/src/cmd/cgo/out.go @@ -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; -- 2.50.0