diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-11-04 14:29:21 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-11-04 14:29:21 +0000 |
commit | 6d9ade62b333feaa696fb228066b621c597eb9ce (patch) | |
tree | f18c06a0a1646fd08cc6332402a10609d451bed8 /cpukit | |
parent | 2002-11-04 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-6d9ade62b333feaa696fb228066b621c597eb9ce.tar.bz2 |
2002-11-04 Joel Sherrill <joel@OARcorp.com>
* pppd/auth.c, rtems_webserver/uemf.h: Removed warnings.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/httpd/uemf.h | 6 | ||||
-rw-r--r-- | cpukit/pppd/auth.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/cpukit/httpd/uemf.h b/cpukit/httpd/uemf.h index cf2f31fd81..b695633ec3 100644 --- a/cpukit/httpd/uemf.h +++ b/cpukit/httpd/uemf.h @@ -162,6 +162,10 @@ /******************************* Per O/S Defines *****************************/ +#if defined(__rtems__) +#define __NO_PACK 1 +#endif + #if UW #define __NO_PACK 1 #endif /* UW */ @@ -877,9 +881,7 @@ extern void bstats(int handle, void (*writefn)(int handle, char_t *fmt, ...)); #define B_USE_MALLOC 0x1 /* Okay to use malloc if required */ #define B_USER_BUF 0x2 /* User supplied buffer for mem */ - #if !LINUX && !__rtems__ -#define __NO_PACK 1 extern char_t *basename(char_t *name); #endif /* !LINUX */ diff --git a/cpukit/pppd/auth.c b/cpukit/pppd/auth.c index f65d492f9a..418ad7d58e 100644 --- a/cpukit/pppd/auth.c +++ b/cpukit/pppd/auth.c @@ -168,7 +168,9 @@ static int null_login __P((int)); static int get_pap_passwd __P((char *)); static int have_pap_secret __P((int *)); static int have_chap_secret __P((char *, char *, int, int *)); +#if 0 static int ip_addr_check __P((u_int32_t, struct permitted_ip *)); +#endif static void free_wordlist __P((struct wordlist *)); static void auth_script __P((enum script_state s)); static void set_allowed_addrs __P((int, struct wordlist *, struct wordlist *)); @@ -1052,6 +1054,7 @@ auth_ip_addr(unit, addr) #endif } +#if 0 static int ip_addr_check(addr, addrs) u_int32_t addr; @@ -1061,6 +1064,7 @@ ip_addr_check(addr, addrs) if ((addr & addrs->mask) == addrs->base) return addrs->permit; } +#endif /* * bad_ip_adrs - return 1 if the IP address is one we don't want |