mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-01 02:20:17 +01:00
Addressed several compiler warnings.
This commit is contained in:
parent
08374524d0
commit
fc4c64c782
61 changed files with 163 additions and 395 deletions
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_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue