Fix compiler warning.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 24 Dec 2022 03:41:01 +0000 (12:41 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 24 Dec 2022 05:28:25 +0000 (14:28 +0900)
pgpool-regclass.c needed to include "utils/varlena.h".  Also sort out
the header files order (except postgres.h which needs to be appear at
the top among PostgreSQL header files).

The compiler warning was reported by Florian Weimer.
https://www.pgpool.net/pipermail/pgpool-hackers/2022-December/004241.html

src/sql/pgpool-regclass/pgpool-regclass.c

index bbb3d8ccf73127c6035d2c950b8036520ac05fa8..9317d8aa1440e082b807e6726468408a2d4154b9 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * $Header$
  *
- * Copyright (c) 2003-2012     PgPool Global Development Group
+ * Copyright (c) 2003-2022     PgPool Global Development Group
  *
  * Permission to use, copy, modify, and distribute this software and
  * its documentation for any purpose and without fee is hereby
  * If something goes wrong, it returns InvalidOid.
  */
 
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
+
 #include "postgres.h"
-#include "utils/builtins.h"
-#include "utils/syscache.h"
-#include "utils/elog.h"
 #include "catalog/namespace.h"
-#include "nodes/makefuncs.h"
 #include "commands/dbcommands.h"
 #include "fmgr.h"
 #include "funcapi.h"
-
-#include <stdlib.h>
+#include "nodes/makefuncs.h"
+#include "utils/builtins.h"
+#include "utils/elog.h"
+#include "utils/syscache.h"
+#include "utils/varlena.h"
 
 #ifdef PG_MODULE_MAGIC
 PG_MODULE_MAGIC;