Closed Bug 563191 Opened 14 years ago Closed 12 years ago

deprecated conversion from string constant to char* in nsAuthSambaNTLM::SpawnNTLMAuthHelper

Categories

(Core :: Networking, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: timeless, Assigned: timeless)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [build_warning])

Attachments

(2 files)

extensions/auth/nsAuthSambaNTLM.cpp: In member function ‘nsresult nsAuthSambaNTLM::SpawnNTLMAuthHelper()’:
nsAuthSambaNTLM.cpp:213:
 warning: deprecated conversion from string constant to ‘char*’
 warning: deprecated conversion from string constant to ‘char*’
 warning: deprecated conversion from string constant to ‘char*’
 warning: deprecated conversion from string constant to ‘char*’
 warning: deprecated conversion from string constant to ‘char*’

    char* args[] = {
        "ntlm_auth",
        "--helper-protocol", "ntlmssp-client-1",
        "--use-cached-creds",
        "--username", const_cast<char*>(username),
        nsnull
    };

this should be const char * const args[], however we can't do that today because the NSPR prototype isn't friendly (see blocker bug).
Depends on: 563192
Attached patch patchSplinter Review
this can't be reviewed or pushed until the blocking bug is fixed.
Assignee: nobody → timeless
Status: NEW → ASSIGNED
There is a patch in the blocking bug (bug 563192), which has gone unreviewed for over a year.  I have pinged it.  I don't know if there is anything else that can be done to get this unjammed.
(In reply to comment #4)
> There is a patch in the blocking bug (bug 563192), which has gone unreviewed
> for over a year.  I have pinged it.  I don't know if there is anything else
> that can be done to get this unjammed.

A few suggestions that were made:
  o poking people is good
  o finding component/module owners and poking them
  o and if important, poking product drivers
  o something to bring up at various triage meetings.
  - there are flags you can set that make it show up for various triage meetings as well.
Whiteboard: [build_warnings]
Whiteboard: [build_warnings] → [build_warning]
Blocks: buildwarning
Attached patch patch 2Splinter Review
How about this instead?  (Saw this clang warning flying by and thought I'd grab it.)
Attachment #640932 - Flags: review?(ehsan)
Attachment #640932 - Flags: review?(ehsan) → review+
Attachment #640932 - Attachment is patch: true
https://hg.mozilla.org/mozilla-central/rev/f14591911ad8
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: