Closed Bug 9247 Opened 26 years ago Closed 26 years ago

Compiler warnings in mozilla/network/cache/mkcache.c, extcache.c

Categories

(Core :: Networking: Cache, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: kherron+mozilla, Assigned: gagan)

Details

Attachments

(3 files)

Much of this was prompted by the fact that size_t is unsigned on linux, so using an int where a size_t is expected (e.g. the argument to malloc()) generates a compiler warning. extcache.c: Patch removes about eleven warnings. Also, the return value of net_GetInt32InCacheDBT() was a time_t where it seemed it should be an int32; the patch fixes that. extcache.h: Patch corrects the prototype for net_GetInt32etc. to match extcache.c. mkcache.c: corrects the definition of the PUT_PART() macro. This macro is used about 30 times and each use generated a warning. Patch also fixes several other minor issues.
Past necko landing...
Target Milestone: M9 → M10
Deferred till cache lands.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
that code is being obsoleted.
Status: RESOLVED → VERIFIED
Bulk move of all Cache (to be deleted component) bugs to new Networking: Cache component.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: