aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/superuser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/utils/misc/superuser.c')
-rw-r--r--src/backend/utils/misc/superuser.c28
1 files changed, 13 insertions, 15 deletions
diff --git a/src/backend/utils/misc/superuser.c b/src/backend/utils/misc/superuser.c
index b939c2c05e1..57a9950dea3 100644
--- a/src/backend/utils/misc/superuser.c
+++ b/src/backend/utils/misc/superuser.c
@@ -2,16 +2,16 @@
*
* superuser.c--
*
- * The superuser() function. Determines if user has superuser privilege.
+ * The superuser() function. Determines if user has superuser privilege.
*
* Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/misc/superuser.c,v 1.2 1996/11/03 23:46:28 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/misc/superuser.c,v 1.3 1997/09/07 04:53:52 momjian Exp $
*
* DESCRIPTION
- * See superuser().
+ * See superuser().
*-------------------------------------------------------------------------
*/
@@ -20,20 +20,18 @@
#include <catalog/pg_user.h>
bool
-superuser(void) {
+superuser(void)
+{
/*--------------------------------------------------------------------------
- The Postgres user running this command has Postgres superuser
- privileges.
+ The Postgres user running this command has Postgres superuser
+ privileges.
--------------------------------------------------------------------------*/
- extern char *UserName; /* defined in global.c */
+ extern char *UserName; /* defined in global.c */
- HeapTuple utup;
+ HeapTuple utup;
- utup = SearchSysCacheTuple(USENAME, PointerGetDatum(UserName),
- 0,0,0);
- Assert(utup != NULL);
- return ((Form_pg_user)GETSTRUCT(utup))->usesuper;
+ utup = SearchSysCacheTuple(USENAME, PointerGetDatum(UserName),
+ 0, 0, 0);
+ Assert(utup != NULL);
+ return ((Form_pg_user) GETSTRUCT(utup))->usesuper;
}
-
-
-