Closed Bug 950345 Opened 11 years ago Closed 11 years ago

warning in mozilla-central/netwerk/sctp/src/user_recv_thread.c

Categories

(Core :: Networking, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 916427

People

(Reporter: iosifadrianmihai, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 (Beta/Release) Build ID: 20130201190337 Steps to reproduce: ./mach build Actual results: Warning: -Wsign-compare in /home/andu/mozilla/mozilla-central/netwerk/sctp/src/user_recv_thread.c: comparison between signed and unsigned integer expressions 3:58.43 /home/andu/mozilla/mozilla-central/netwerk/sctp/src/user_recv_thread.c:485:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Attached patch p1.patch (obsolete) — Splinter Review
First patch ever Fixed warning in mozilla-central/netwerk/sctp/src/user_recv_thread.c: comparison between signed and unsigned integer expressions 3:58.43 /mozilla-central/netwerk/sctp/src/user_recv_thread.c:485:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] added explicit cast to int to MLEN
Attachment #8347621 - Flags: review?(mcmanus)
Attachment #8347621 - Attachment is obsolete: true
Attachment #8347621 - Flags: review?(mcmanus)
Attachment #8347795 - Flags: review?(mcmanus)
Component: General → Networking
Attachment #8347795 - Flags: review?(mcmanus) → review?(rjesup)
Michael: is this fixed by your upstream change as well?
Flags: needinfo?(tuexen)
The upstream code reads: int iovlen = MCLBYTES; int want_ext = (iovlen > MLEN)? 1 : 0; and the patch of yesterday gives you #define MLEN ((int)(MSIZE - sizeof(struct m_hdr))) So there should no patch be necessary anymore. Short answer: Yes, this is fixed also.
Flags: needinfo?(tuexen)
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Attachment #8347795 - Flags: review?(rjesup)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: