Make it work with Digital Unix native cc.

This commit is contained in:
Martin Baulig
1999-02-19 11:02:32 +00:00
parent a22d3fad36
commit ce45801873
3 changed files with 8 additions and 7 deletions

View File

@@ -62,9 +62,8 @@ char *program_invocation_short_name;
char *program_invocation_name; char *program_invocation_name;
#endif #endif
extern void handle_parent_connection __P ((int)); void handle_parent_connection (int s);
extern void handle_slave_connection __P ((int, int)); void handle_slave_connection (int input, int output);
extern void handle_ipc_connection __P ((int));
#if !defined(INTERNET_DOMAIN_SOCKETS) #if !defined(INTERNET_DOMAIN_SOCKETS)
#error "Internet Domain sockets are required" #error "Internet Domain sockets are required"
@@ -244,6 +243,8 @@ permitted (u_long host_addr, int fd)
if (enable_debug) if (enable_debug)
syslog_message (LOG_DEBUG, "Trying %lx - %lx", syslog_message (LOG_DEBUG, "Trying %lx - %lx",
host_addr, permitted_hosts [i]); host_addr, permitted_hosts [i]);
if (permitted_hosts [i] == NULL)
return (FALSE);
if (host_addr == permitted_hosts [i]) if (host_addr == permitted_hosts [i])
return (TRUE); return (TRUE);
} }

View File

@@ -3,9 +3,9 @@
#define SERVER_UID 99 #define SERVER_UID 99
#define SERVER_GID 99 #define SERVER_GID 99
#define HOST_TABLE_ENTRIES 0 #define HOST_TABLE_ENTRIES 1
const char *permitted_host_names [HOST_TABLE_ENTRIES] = const char *permitted_host_names [HOST_TABLE_ENTRIES] =
{ }; { NULL };
unsigned long permitted_hosts [HOST_TABLE_ENTRIES]; unsigned long permitted_hosts [HOST_TABLE_ENTRIES];

View File

@@ -21,7 +21,7 @@
#define SERVER_UID 99 /* User ID the server should run as. */ #define SERVER_UID 99 /* User ID the server should run as. */
#define SERVER_GID 99 /* Group ID the server should run as. */ #define SERVER_GID 99 /* Group ID the server should run as. */
#define HOST_TABLE_ENTRIES 0 /* Number of entries in the host table. */ #define HOST_TABLE_ENTRIES 1 /* Number of entries in the host table. */
/* List of hosts that should be authorized to connect to the server. /* List of hosts that should be authorized to connect to the server.
* *
@@ -38,7 +38,7 @@
*/ */
const char *permitted_host_names [HOST_TABLE_ENTRIES] = const char *permitted_host_names [HOST_TABLE_ENTRIES] =
{ }; { NULL };
unsigned long permitted_hosts [HOST_TABLE_ENTRIES]; unsigned long permitted_hosts [HOST_TABLE_ENTRIES];