summaryrefslogtreecommitdiffstats
path: root/nsprpub/pr/tests/formattm.c
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-02 21:01:38 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-02 21:01:38 +0100
commitf7d30133221896638f7bf4f66c504255c4b14f48 (patch)
tree5f3e07a049f388a3a309a615b8884318f6668a98 /nsprpub/pr/tests/formattm.c
parent26b297510a11758727438df4669357a2a2bc42ce (diff)
downloadUXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.gz
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.lz
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.xz
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.zip
Issue #1338 - Part 1: Update NSPR to 4.24
Diffstat (limited to 'nsprpub/pr/tests/formattm.c')
-rw-r--r--nsprpub/pr/tests/formattm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nsprpub/pr/tests/formattm.c b/nsprpub/pr/tests/formattm.c
index 88b9fdf21..63355b28b 100644
--- a/nsprpub/pr/tests/formattm.c
+++ b/nsprpub/pr/tests/formattm.c
@@ -20,7 +20,7 @@ int main(int argc, char **argv)
PR_ExplodeTime(now, PR_LocalTimeParameters, &tod);
if (PR_FormatTime(buffer, sizeof(buffer),
- "%a %b %d %H:%M:%S %Z %Y", &tod) != 0) {
+ "%a %b %d %H:%M:%S %Z %Y", &tod) != 0) {
printf("%s\n", buffer);
} else {
fprintf(stderr, "PR_FormatTime(buffer) failed\n");
@@ -29,21 +29,21 @@ int main(int argc, char **argv)
small_buffer[0] = '?';
if (PR_FormatTime(small_buffer, sizeof(small_buffer),
- "%a %b %d %H:%M:%S %Z %Y", &tod) == 0) {
+ "%a %b %d %H:%M:%S %Z %Y", &tod) == 0) {
if (small_buffer[0] != '\0') {
fprintf(stderr, "PR_FormatTime(small_buffer) did not output "
- "an empty string on failure\n");
+ "an empty string on failure\n");
return 1;
}
printf("%s\n", small_buffer);
} else {
fprintf(stderr, "PR_FormatTime(small_buffer) succeeded "
- "unexpectedly\n");
+ "unexpectedly\n");
return 1;
}
(void)PR_FormatTimeUSEnglish(buffer, sizeof(buffer),
- "%a %b %d %H:%M:%S %Z %Y", &tod);
+ "%a %b %d %H:%M:%S %Z %Y", &tod);
printf("%s\n", buffer);
return 0;