summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc <devnull@localhost>1998-04-13 22:46:48 +0000
committerwtc <devnull@localhost>1998-04-13 22:46:48 +0000
commita10cbc61958d20130676f4f57c0ea96ac1a2e8f0 (patch)
tree398b898e2967d8a2556672e665f3c1cf33b33416
parentf61e4b1451c7cb50c7751873b1eb28976859c736 (diff)
downloadnspr-hg-a10cbc61958d20130676f4f57c0ea96ac1a2e8f0.tar.gz
Got rid of compiler warnings. We acknowledge the help of Nathan
Torkington <gnat@frii.com>.
-rw-r--r--pr/src/md/unix/unix.c6
-rw-r--r--pr/src/misc/prnetdb.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/pr/src/md/unix/unix.c b/pr/src/md/unix/unix.c
index 4148fb4d..c17c2d77 100644
--- a/pr/src/md/unix/unix.c
+++ b/pr/src/md/unix/unix.c
@@ -2348,6 +2348,7 @@ PRInt32 _MD_open(const char *name, PRIntn flags, PRIntn mode)
PRIntervalTime intr_timeout_ticks;
+#if defined(SOLARIS) || defined(IRIX)
static void sigsegvhandler() {
fprintf(stderr,"Received SIGSEGV\n");
fflush(stderr);
@@ -2365,6 +2366,7 @@ static void sigbushandler() {
fflush(stderr);
pause();
}
+#endif /* SOLARIS, IRIX */
#endif /* !defined(_PR_PTHREADS) */
@@ -2543,7 +2545,7 @@ PR_Now(void)
return s;
}
-PR_IMPLEMENT(PRIntervalTime) _PR_UNIX_GetInterval()
+PRIntervalTime _PR_UNIX_GetInterval()
{
struct timeval time;
PRIntervalTime ticks;
@@ -2558,7 +2560,7 @@ PR_IMPLEMENT(PRIntervalTime) _PR_UNIX_GetInterval()
return ticks;
} /* _PR_SUNOS_GetInterval */
-PR_IMPLEMENT(PRIntervalTime) _PR_UNIX_TicksPerSecond()
+PRIntervalTime _PR_UNIX_TicksPerSecond()
{
return 1000; /* this needs some work :) */
}
diff --git a/pr/src/misc/prnetdb.c b/pr/src/misc/prnetdb.c
index c1728171..acb6b5e3 100644
--- a/pr/src/misc/prnetdb.c
+++ b/pr/src/misc/prnetdb.c
@@ -395,7 +395,9 @@ PR_IMPLEMENT(PRStatus) PR_GetProtoByName(
const char* name, char* buffer, PRInt32 buflen, PRProtoEnt* result)
{
PRStatus rv = PR_SUCCESS;
+#if defined(_PR_HAVE_GETPROTO_R)
struct protoent* res = (struct protoent*)result;
+#endif
if (!_pr_initialized) _PR_ImplicitInitialization();
@@ -474,7 +476,9 @@ PR_IMPLEMENT(PRStatus) PR_GetProtoByNumber(
PRInt32 number, char* buffer, PRInt32 buflen, PRProtoEnt* result)
{
PRStatus rv = PR_SUCCESS;
+#if defined(_PR_HAVE_GETPROTO_R)
struct protoent* res = (struct protoent*)result;
+#endif
if (!_pr_initialized) _PR_ImplicitInitialization();