summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-04 14:29:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-04 14:29:21 +0000
commit6d9ade62b333feaa696fb228066b621c597eb9ce (patch)
treef18c06a0a1646fd08cc6332402a10609d451bed8
parent9c8838f1e15a1fb0563b73ab48f0ed10fd2f120a (diff)
downloadrtems-6d9ade62b333feaa696fb228066b621c597eb9ce.tar.bz2
2002-11-04 Joel Sherrill <joel@OARcorp.com>
* pppd/auth.c, rtems_webserver/uemf.h: Removed warnings.
-rw-r--r--c/src/libnetworking/ChangeLog4
-rw-r--r--c/src/libnetworking/pppd/auth.c4
-rw-r--r--c/src/libnetworking/rtems_webserver/uemf.h6
-rw-r--r--cpukit/httpd/uemf.h6
-rw-r--r--cpukit/pppd/auth.c4
5 files changed, 20 insertions, 4 deletions
diff --git a/c/src/libnetworking/ChangeLog b/c/src/libnetworking/ChangeLog
index 495ab04046..336f12decd 100644
--- a/c/src/libnetworking/ChangeLog
+++ b/c/src/libnetworking/ChangeLog
@@ -1,3 +1,7 @@
+2002-11-04 Joel Sherrill <joel@OARcorp.com>
+
+ * pppd/auth.c, rtems_webserver/uemf.h: Removed warnings.
+
2002-10-31 Joel Sherrill <joel@OARcorp.com>
* rtems_webserver/socket.c, rtems_webserver/uemf.h: Removed
diff --git a/c/src/libnetworking/pppd/auth.c b/c/src/libnetworking/pppd/auth.c
index f65d492f9a..418ad7d58e 100644
--- a/c/src/libnetworking/pppd/auth.c
+++ b/c/src/libnetworking/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
diff --git a/c/src/libnetworking/rtems_webserver/uemf.h b/c/src/libnetworking/rtems_webserver/uemf.h
index cf2f31fd81..b695633ec3 100644
--- a/c/src/libnetworking/rtems_webserver/uemf.h
+++ b/c/src/libnetworking/rtems_webserver/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/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