]> granicus.if.org Git - postgresql/commitdiff
Clean up some minor compile warnings.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 7 Feb 1999 22:07:02 +0000 (22:07 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 7 Feb 1999 22:07:02 +0000 (22:07 +0000)
src/backend/port/inet_aton.c
src/backend/port/random.c
src/backend/port/srandom.c
src/backend/utils/fmgr/dfmgr.c

index ae954887c266de51f8f2790f80a1479fee89eab9..2922c137caa0b7b87d6df53f9d55e6b6131160df 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: inet_aton.c,v 1.15 1998/09/01 03:24:28 momjian Exp $
+/* $Id: inet_aton.c,v 1.16 1999/02/07 22:07:02 tgl Exp $
  *
  *     This inet_aton() function was taken from the GNU C library and
  *     incorporated into Postgres for those systems which do not have this
@@ -42,6 +42,8 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.  */
 
+#include "config.h"
+
 #include <sys/types.h>
 #include <netinet/in.h>
 #include <ctype.h>
index dc74986781a0509ddc8a32c94e84f89f7c3695a0..84b82936916e8d120b76611ba21363e09b685c35 100644 (file)
@@ -1,8 +1,10 @@
-/* $Id: random.c,v 1.5 1998/09/01 03:24:30 momjian Exp $ */
+/* $Id: random.c,v 1.6 1999/02/07 22:07:02 tgl Exp $ */
 
+#include <stdlib.h>
 #include <math.h>                              /* for pow() prototype */
-
 #include <errno.h>
+
+#include "config.h"
 #include "rusagestub.h"
 
 long
index 7a443acb9e3ae4b11c71106de9cf15c4c2e886d9..ed7cf4b7bea88b36ef4574bf2a67a0c0f7d225af 100644 (file)
@@ -1,8 +1,10 @@
-/* $Id: srandom.c,v 1.5 1998/02/26 04:34:14 momjian Exp $ */
+/* $Id: srandom.c,v 1.6 1999/02/07 22:07:02 tgl Exp $ */
 
+#include <stdlib.h>
 #include <math.h>                              /* for pow() prototype */
-
 #include <errno.h>
+
+#include "config.h"
 #include "rusagestub.h"
 
 void
index 563ed2d28e9c9321bd47cdf3e9067a604c54b1c8..3c2fd6c6e56c47737465a792f5682b4182407c11 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.21 1998/10/08 18:30:14 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.22 1999/02/07 22:06:01 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -277,7 +277,8 @@ load_file(char *filename)
        handle_load(filename, (char *) NULL);
 }
 
-/* Is this used? bjm 1998/10/08 */
+/* Is this used? bjm 1998/10/08   No. tgl 1999/02/07 */
+#ifdef NOT_USED
 func_ptr
 trigger_dynamic(char *filename, char *funcname)
 {
@@ -287,3 +288,4 @@ trigger_dynamic(char *filename, char *funcname)
 
        return trigger_fn;
 }
+#endif