summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-19 18:47:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-19 18:47:54 +0000
commit930775ddb7986d94f81f5ad12c08be8b614da17c (patch)
treeb20d917f8cc9807ffcbe0aebc4f7cdad9af554b7 /cpukit/libnetworking
parent2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-930775ddb7986d94f81f5ad12c08be8b614da17c.tar.bz2
2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* libnetworking/kern/kern_sysctl.c, libnetworking/libc/res_debug.c: Fix warnings.
Diffstat (limited to '')
-rw-r--r--cpukit/libnetworking/kern/kern_sysctl.c2
-rw-r--r--cpukit/libnetworking/libc/res_debug.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libnetworking/kern/kern_sysctl.c b/cpukit/libnetworking/kern/kern_sysctl.c
index ce0f1aa77c..fe917cf631 100644
--- a/cpukit/libnetworking/kern/kern_sysctl.c
+++ b/cpukit/libnetworking/kern/kern_sysctl.c
@@ -702,7 +702,7 @@ static int
sysctl_sysctl_name2oid(SYSCTL_HANDLER_ARGS)
{
char *p;
- int error, oid[CTL_MAXNAME], len;
+ int error, oid[CTL_MAXNAME], len=0;
struct sysctl_oid *op = 0;
if (!req->newlen)
diff --git a/cpukit/libnetworking/libc/res_debug.c b/cpukit/libnetworking/libc/res_debug.c
index e34c4c23f0..a614e8437d 100644
--- a/cpukit/libnetworking/libc/res_debug.c
+++ b/cpukit/libnetworking/libc/res_debug.c
@@ -726,9 +726,9 @@ loc_aton(ascii, binary)
cp = ascii;
maxcp = cp + strlen(ascii);
- lltemp1 = latlon2ul(&cp, &which1);
+ lltemp1 = latlon2ul((char **)&cp, &which1);
- lltemp2 = latlon2ul(&cp, &which2);
+ lltemp2 = latlon2ul((char **)&cp, &which2);
switch (which1 + which2) {
case 3: /* 1 + 2, the only valid combination */