Skip to content

Commit 831add2

Browse files
committed
Bug 1060419 - make nsProfileLock.cpp use Printf.h, r=froydnj
MozReview-Commit-ID: KHhwAQUbfxb --HG-- extra : rebase_source : 0f1dcf66983abdc622d6396eed724d73bf367b9c
1 parent 2c38233 commit 831add2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

toolkit/profile/nsProfileLock.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
#include <stdlib.h>
2727
#include "prnetdb.h"
2828
#include "prsystem.h"
29-
#include "prprf.h"
3029
#include "prenv.h"
30+
#include "mozilla/Printf.h"
3131
#endif
3232

3333
#if defined(MOZ_WIDGET_GONK) && !defined(MOZ_CRASHREPORTER)
@@ -353,8 +353,8 @@ nsresult nsProfileLock::LockWithSymlink(nsIFile *aLockFile, bool aHaveFcntlLock)
353353
}
354354

355355
char *signature =
356-
PR_smprintf("%s:%s%lu", inet_ntoa(inaddr), aHaveFcntlLock ? "+" : "",
357-
(unsigned long)getpid());
356+
mozilla::Smprintf("%s:%s%lu", inet_ntoa(inaddr), aHaveFcntlLock ? "+" : "",
357+
(unsigned long)getpid());
358358
const char *fileName = lockFilePath.get();
359359
int symlink_rv, symlink_errno = 0, tries = 0;
360360

@@ -375,7 +375,7 @@ nsresult nsProfileLock::LockWithSymlink(nsIFile *aLockFile, bool aHaveFcntlLock)
375375
break;
376376
}
377377

378-
PR_smprintf_free(signature);
378+
mozilla::SmprintfFree(signature);
379379
signature = nullptr;
380380

381381
if (symlink_rv == 0)

0 commit comments

Comments
 (0)