summaryrefslogtreecommitdiffstats
path: root/nsprpub/pr/tests/stat.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/stat.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/stat.c')
-rw-r--r--nsprpub/pr/tests/stat.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/nsprpub/pr/tests/stat.c b/nsprpub/pr/tests/stat.c
index c570056f8..1f870a0d4 100644
--- a/nsprpub/pr/tests/stat.c
+++ b/nsprpub/pr/tests/stat.c
@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
- * Program to test different ways to get file info; right now it
+ * Program to test different ways to get file info; right now it
* only works for solaris and OS/2.
*
*/
@@ -35,9 +35,9 @@ static void statPRStat(void)
{
PRFileInfo finfo;
PRInt32 index = count;
-
- for (;index--;) {
- PR_GetFileInfo(filename, &finfo);
+
+ for (; index--;) {
+ PR_GetFileInfo(filename, &finfo);
}
}
@@ -45,8 +45,8 @@ static void statStat(void)
{
struct stat finfo;
PRInt32 index = count;
-
- for (;index--;) {
+
+ for (; index--;) {
stat(filename, &finfo);
}
}
@@ -75,9 +75,9 @@ int main(int argc, char **argv)
PR_STDIO_INIT();
if (argc > 1) {
- count = atoi(argv[1]);
+ count = atoi(argv[1]);
} else {
- count = DEFAULT_COUNT;
+ count = DEFAULT_COUNT;
}
Measure(statPRStat, "time to call PR_GetFileInfo()");