Closed
Bug 48248
Opened 25 years ago
Closed 25 years ago
Extraneous declaration of putenv() in unix_rand.c.
Categories
(NSS :: Libraries, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: wtc, Assigned: wtc)
Details
This bug was reported by Steven T. Hatton
<hattons@bellatlantic.net> in mozilla.crypto.
This is the compiler error he gets.
In file included from sysrand.c:36:
unix_rand.c:267: conflicting types for `putenv'
/usr/include/stdlib.h:540: previous declaration of `putenv'
/usr/include/stdlib.h has:
extern int putenv __P ((char *__string));
/mozilla/security/nss/lib/util/unix_rand.c has:
int putenv(const char *);
Since putenv() is declared in <stdlib.h> and unix_rand.c
already includes <stdlib.h>, we should remove the line
int putenv(const char *);
from unix_rand.c.
Comment 1•25 years ago
|
||
The real solution to this bug is to eliminate these functions from NSS
and start using the versions of these functions in NSPR.
Or is this bug about the versions in NSPR?
I can't tell.
Assignee | ||
Comment 2•25 years ago
|
||
This bug is about unix_rand.c in NSS.
We should open another bug for what you suggested:
eliminate these functions from NSS and start using
the versions of these functions in NSPR.
Comment 3•25 years ago
|
||
Why should that be a separate bug? Why not kill 2 birds with one stone?
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•25 years ago
|
||
I removed the putenv() declaration from unix_rand.c.
/cvsroot/mozilla/security/nss/lib/util/unix_rand.c, revision: 1.2
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•25 years ago
|
||
Just wanted to note that Ian opened bug #48258
for NSS to use PR_GetRandomNoise().
You need to log in
before you can comment on or make changes to this bug.
Description
•