From 524d64ea8e3e49b4fda41ff9b2f048b697384058 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 19 Feb 2018 12:07:44 -0500 Subject: Remove bogus "extern" annotations on function definitions. While this is not illegal C, project style is to put "extern" only on declarations not definitions. David Rowley Discussion: https://postgr.es/m/CAKJS1f9RKLWXcMBQhvDYhmsMEo+ALuNgA-NE+AX5Uoke9DJ2Xg@mail.gmail.com --- src/backend/utils/adt/json.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/utils/adt/json.c') diff --git a/src/backend/utils/adt/json.c b/src/backend/utils/adt/json.c index 3ba9bb35191..6f0fe94d63f 100644 --- a/src/backend/utils/adt/json.c +++ b/src/backend/utils/adt/json.c @@ -1843,7 +1843,7 @@ add_json(Datum val, bool is_null, StringInfo result, /* * SQL function array_to_json(row) */ -extern Datum +Datum array_to_json(PG_FUNCTION_ARGS) { Datum array = PG_GETARG_DATUM(0); @@ -1859,7 +1859,7 @@ array_to_json(PG_FUNCTION_ARGS) /* * SQL function array_to_json(row, prettybool) */ -extern Datum +Datum array_to_json_pretty(PG_FUNCTION_ARGS) { Datum array = PG_GETARG_DATUM(0); @@ -1876,7 +1876,7 @@ array_to_json_pretty(PG_FUNCTION_ARGS) /* * SQL function row_to_json(row) */ -extern Datum +Datum row_to_json(PG_FUNCTION_ARGS) { Datum array = PG_GETARG_DATUM(0); @@ -1892,7 +1892,7 @@ row_to_json(PG_FUNCTION_ARGS) /* * SQL function row_to_json(row, prettybool) */ -extern Datum +Datum row_to_json_pretty(PG_FUNCTION_ARGS) { Datum array = PG_GETARG_DATUM(0); -- cgit v1.2.3