Commit 93922990 authored by Tom Lane's avatar Tom Lane

Clean up some minor gcc warnings.

parent c16afb4e
...@@ -7,12 +7,13 @@ ...@@ -7,12 +7,13 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.47 1999/12/12 05:15:10 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.48 1999/12/20 01:11:37 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#include <signal.h> #include <signal.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h>
#include "postgres.h" #include "postgres.h"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: user.c,v 1.45 1999/12/16 17:24:13 momjian Exp $ * $Id: user.c,v 1.46 1999/12/20 01:11:37 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -37,7 +37,7 @@ static void CheckPgUserAclNotNull(void); ...@@ -37,7 +37,7 @@ static void CheckPgUserAclNotNull(void);
#define SQL_LENGTH 512 #define SQL_LENGTH 512
/*--------------------------------------------------------------------- /*---------------------------------------------------------------------
* UpdatePgPwdFile * update_pg_pwd
* *
* copy the modified contents of pg_shadow to a file used by the postmaster * copy the modified contents of pg_shadow to a file used by the postmaster
* for user authentication. The file is stored as $PGDATA/pg_pwd. * for user authentication. The file is stored as $PGDATA/pg_pwd.
...@@ -48,12 +48,8 @@ static void CheckPgUserAclNotNull(void); ...@@ -48,12 +48,8 @@ static void CheckPgUserAclNotNull(void);
*--------------------------------------------------------------------- *---------------------------------------------------------------------
*/ */
/* This is the old name. Now uses a lower case name to be able to call this
from SQL. */
#define UpdatePgPwdFile() update_pg_pwd()
void void
update_pg_pwd() update_pg_pwd(void)
{ {
char *filename, char *filename,
*tempname; *tempname;
...@@ -242,7 +238,7 @@ DefineUser(CreateUserStmt *stmt, CommandDest dest) ...@@ -242,7 +238,7 @@ DefineUser(CreateUserStmt *stmt, CommandDest dest)
* we can be sure no other backend will try to write the flat * we can be sure no other backend will try to write the flat
* file at the same time. * file at the same time.
*/ */
UpdatePgPwdFile(); update_pg_pwd();
/* /*
* Now we can clean up. * Now we can clean up.
...@@ -391,7 +387,7 @@ AlterUser(AlterUserStmt *stmt, CommandDest dest) ...@@ -391,7 +387,7 @@ AlterUser(AlterUserStmt *stmt, CommandDest dest)
* we can be sure no other backend will try to write the flat * we can be sure no other backend will try to write the flat
* file at the same time. * file at the same time.
*/ */
UpdatePgPwdFile(); update_pg_pwd();
/* /*
* Now we can clean up. * Now we can clean up.
...@@ -524,7 +520,7 @@ RemoveUser(char *user, CommandDest dest) ...@@ -524,7 +520,7 @@ RemoveUser(char *user, CommandDest dest)
* we can be sure no other backend will try to write the flat * we can be sure no other backend will try to write the flat
* file at the same time. * file at the same time.
*/ */
UpdatePgPwdFile(); update_pg_pwd();
/* /*
* Now we can clean up. * Now we can clean up.
...@@ -758,7 +754,6 @@ AlterGroup(AlterGroupStmt *stmt, CommandDest dest) ...@@ -758,7 +754,6 @@ AlterGroup(AlterGroupStmt *stmt, CommandDest dest)
*/ */
if (stmt->action == 0) /* change sysid */ if (stmt->action == 0) /* change sysid */
{ {
bool sysid_exists = false;
ScanKeyData keys[2]; ScanKeyData keys[2];
HeapTuple tuple; HeapTuple tuple;
HeapScanDesc scan; HeapScanDesc scan;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeTidscan.c,v 1.2 1999/12/16 22:19:44 wieck Exp $ * $Header: /cvsroot/pgsql/src/backend/executor/nodeTidscan.c,v 1.3 1999/12/20 01:14:33 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -104,8 +104,6 @@ TidNext(TidScan *node) ...@@ -104,8 +104,6 @@ TidNext(TidScan *node)
if (estate->es_evTuple != NULL && if (estate->es_evTuple != NULL &&
estate->es_evTuple[node->scan.scanrelid - 1] != NULL) estate->es_evTuple[node->scan.scanrelid - 1] != NULL)
{ {
int iptr, numQuals;
ExecClearTuple(slot); ExecClearTuple(slot);
if (estate->es_evTupleNull[node->scan.scanrelid - 1]) if (estate->es_evTupleNull[node->scan.scanrelid - 1])
return slot; /* return empty slot */ return slot; /* return empty slot */
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.28 1999/09/24 00:24:53 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.29 1999/12/20 01:19:11 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -54,7 +54,6 @@ EState * ...@@ -54,7 +54,6 @@ EState *
CreateExecutorState(void) CreateExecutorState(void)
{ {
EState *state; EState *state;
extern int NBuffers;
/* ---------------- /* ----------------
* create a new executor state * create a new executor state
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/tid.c,v 1.12 1999/10/11 06:28:26 inoue Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/tid.c,v 1.13 1999/12/20 01:23:04 tgl Exp $
* *
* NOTES * NOTES
* input routine largely stolen from boxin(). * input routine largely stolen from boxin().
...@@ -144,7 +144,7 @@ text_tid(const text *string) ...@@ -144,7 +144,7 @@ text_tid(const text *string)
if (!string) return (ItemPointer)0; if (!string) return (ItemPointer)0;
str = textout(string); str = textout((text *) string);
result = tidin(str); result = tidin(str);
pfree(str); pfree(str);
...@@ -188,7 +188,7 @@ currtid_byrelname(const text *relname, ItemPointer tid) ...@@ -188,7 +188,7 @@ currtid_byrelname(const text *relname, ItemPointer tid)
if (!relname) return result; if (!relname) return result;
str = textout(relname); str = textout((text *) relname);
result = (ItemPointer) palloc(sizeof(ItemPointerData)); result = (ItemPointer) palloc(sizeof(ItemPointerData));
ItemPointerSetInvalid(result); ItemPointerSetInvalid(result);
......
...@@ -21,4 +21,6 @@ extern void CreateGroup(CreateGroupStmt *stmt, CommandDest dest); ...@@ -21,4 +21,6 @@ extern void CreateGroup(CreateGroupStmt *stmt, CommandDest dest);
extern void AlterGroup(AlterGroupStmt *stmt, CommandDest dest); extern void AlterGroup(AlterGroupStmt *stmt, CommandDest dest);
extern void DropGroup(DropGroupStmt *stmt, CommandDest dest); extern void DropGroup(DropGroupStmt *stmt, CommandDest dest);
extern void update_pg_pwd(void);
#endif /* USER_H */ #endif /* USER_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment