mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Major code cleanups from D'arcy (-Wall -Werror)
This commit is contained in:
@@ -43,6 +43,8 @@ static char sccsid[] = "@(#)dl.c 5.4 (Berkeley) 2/23/91";
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "port-protos.h"
|
||||
|
||||
static char error_message[BUFSIZ];
|
||||
|
||||
char *
|
||||
@@ -56,7 +58,7 @@ BSD44_derived_dlerror(void)
|
||||
}
|
||||
|
||||
void *
|
||||
BSD44_derived_dlopen(char *file, int num)
|
||||
BSD44_derived_dlopen(const char *file, int num)
|
||||
{
|
||||
#ifdef __mips__
|
||||
(void) sprintf(error_message, "dlopen (%s) not supported", file);
|
||||
@@ -72,7 +74,7 @@ BSD44_derived_dlopen(char *file, int num)
|
||||
}
|
||||
|
||||
void *
|
||||
BSD44_derived_dlsym(void *handle, char *name)
|
||||
BSD44_derived_dlsym(void *handle, const char *name)
|
||||
{
|
||||
#ifdef __mips__
|
||||
(void) sprintf(error_message, "dlsym (%s) failed", name);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: port-protos.h,v 1.1.1.1 1996/07/09 06:21:42 scrappy Exp $
|
||||
* $Id: port-protos.h,v 1.2 1996/10/23 07:40:45 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -38,4 +38,10 @@
|
||||
#define pg_dlclose BSD44_derived_dlclose
|
||||
#define pg_dlerror BSD44_derived_dlerror
|
||||
|
||||
char * BSD44_derived_dlerror(void);
|
||||
void * BSD44_derived_dlopen(const char *filename, int num);
|
||||
void * BSD44_derived_dlsym(void *handle, const char *name);
|
||||
void * BSD44_derived_dlsym(void *handle, const char *name);
|
||||
void BSD44_derived_dlclose(void *handle);
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
|
||||
Reference in New Issue
Block a user