summaryrefslogtreecommitdiffstats
path: root/nsprpub/lib/libc/src/plerror.c
diff options
context:
space:
mode:
Diffstat (limited to 'nsprpub/lib/libc/src/plerror.c')
-rw-r--r--nsprpub/lib/libc/src/plerror.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/nsprpub/lib/libc/src/plerror.c b/nsprpub/lib/libc/src/plerror.c
index bb8e08d29..2a3510f89 100644
--- a/nsprpub/lib/libc/src/plerror.c
+++ b/nsprpub/lib/libc/src/plerror.c
@@ -16,14 +16,16 @@
PR_IMPLEMENT(void) PL_FPrintError(PRFileDesc *fd, const char *msg)
{
-PRErrorCode error = PR_GetError();
-PRInt32 oserror = PR_GetOSError();
-const char *name = PR_ErrorToName(error);
+ PRErrorCode error = PR_GetError();
+ PRInt32 oserror = PR_GetOSError();
+ const char *name = PR_ErrorToName(error);
- if (NULL != msg) PR_fprintf(fd, "%s: ", msg);
+ if (NULL != msg) {
+ PR_fprintf(fd, "%s: ", msg);
+ }
if (NULL == name)
PR_fprintf(
- fd, " (%d)OUT OF RANGE, oserror = %d\n", error, oserror);
+ fd, " (%d)OUT OF RANGE, oserror = %d\n", error, oserror);
else
PR_fprintf(
fd, "%s(%d), oserror = %d\n",
@@ -32,9 +34,11 @@ const char *name = PR_ErrorToName(error);
PR_IMPLEMENT(void) PL_PrintError(const char *msg)
{
- static PRFileDesc *fd = NULL;
- if (NULL == fd) fd = PR_GetSpecialFD(PR_StandardError);
- PL_FPrintError(fd, msg);
+ static PRFileDesc *fd = NULL;
+ if (NULL == fd) {
+ fd = PR_GetSpecialFD(PR_StandardError);
+ }
+ PL_FPrintError(fd, msg);
} /* PL_PrintError */
/* plerror.c */