mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-20 02:21:44 +01:00
Addressed several compiler warnings.
This commit is contained in:
15
src/sysdep.h
15
src/sysdep.h
@@ -171,9 +171,6 @@ extern void abort (), exit ();
|
||||
#define assert(arg)
|
||||
#endif
|
||||
|
||||
/* Header files only used in comm.c and some of the utils */
|
||||
#if defined(__COMM_C__) || defined(CIRCLE_UTIL)
|
||||
|
||||
#ifndef HAVE_STRUCT_IN_ADDR
|
||||
struct in_addr {
|
||||
unsigned long int s_addr; /* for inet_addr, etc. */
|
||||
@@ -230,17 +227,10 @@ struct in_addr {
|
||||
# include <sys/uio.h>
|
||||
#endif
|
||||
|
||||
#endif /* __COMM_C__ && CIRCLE_UNIX */
|
||||
|
||||
/* Header files that are only used in act.other.c */
|
||||
#ifdef __ACT_OTHER_C__
|
||||
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#endif /* __ACT_OTHER_C__ */
|
||||
|
||||
/* Basic system dependencies. */
|
||||
#if CIRCLE_GNU_LIBC_MEMORY_TRACK && !defined(HAVE_MCHECK_H)
|
||||
#error "Cannot use GNU C library memory tracking without <mcheck.h>"
|
||||
@@ -464,9 +454,6 @@ struct in_addr {
|
||||
int remove(const char *path);
|
||||
#endif
|
||||
|
||||
/* Function prototypes that are only used in comm.c and some of the utils */
|
||||
#if defined(__COMM_C__) || defined(CIRCLE_UTIL)
|
||||
|
||||
#ifdef NEED_ACCEPT_PROTO
|
||||
int accept(socket_t s, struct sockaddr *addr, int *addrlen);
|
||||
#endif
|
||||
@@ -574,8 +561,6 @@ struct in_addr {
|
||||
ssize_t write(int fildes, const void *buf, size_t nbyte);
|
||||
#endif
|
||||
|
||||
#endif /* __COMM_C__ */
|
||||
|
||||
#endif /* NO_LIBRARY_PROTOTYPES */
|
||||
|
||||
#endif /* _SYSDEP_H_ */
|
||||
|
||||
Reference in New Issue
Block a user