summaryrefslogtreecommitdiff
path: root/pr/tests/depend.c
diff options
context:
space:
mode:
Diffstat (limited to 'pr/tests/depend.c')
-rw-r--r--pr/tests/depend.c31
1 files changed, 21 insertions, 10 deletions
diff --git a/pr/tests/depend.c b/pr/tests/depend.c
index 98ce245e..f3689bc4 100644
--- a/pr/tests/depend.c
+++ b/pr/tests/depend.c
@@ -7,15 +7,15 @@
** 1996 - Netscape Communications Corporation
**
**
-** Name: depend.c
+** Name: depend.c
** Description: Test to enumerate the dependencies
*
** Modification History:
** 14-May-97 AGarcia- Converted the test to accomodate the debug_mode flag.
-** The debug mode will print all of the printfs associated with this test.
-** The regress mode will be the default mode. Since the regress tool limits
+** The debug mode will print all of the printfs associated with this test.
+** The regress mode will be the default mode. Since the regress tool limits
** the output to a one line status:PASS or FAIL,all of the printf statements
-** have been handled with an if (debug_mode) statement.
+** have been handled with an if (debug_mode) statement.
***********************************************************************/
#include "prinit.h"
@@ -35,13 +35,16 @@ static void PrintVersion(
static const char *tabs = {" "};
tab *= 2;
- if (tab > len) tab = len;
+ if (tab > len) {
+ tab = len;
+ }
printf("%s", &tabs[len - tab]);
printf("%s ", msg);
printf("%s ", info->id);
printf("%d.%d", info->major, info->minor);
- if (0 != info->patch)
+ if (0 != info->patch) {
printf(".p%d", info->patch);
+ }
printf("\n");
} /* PrintDependency */
@@ -77,9 +80,15 @@ static const PRVersionInfo *HackExportInfo(void)
static const PRDependencyInfo *DummyImports(
const PRDependencyInfo *previous)
{
- if (NULL == previous) return &dummy_imports[0];
- else if (&dummy_imports[0] == previous) return &dummy_imports[1];
- else if (&dummy_imports[1] == previous) return NULL;
+ if (NULL == previous) {
+ return &dummy_imports[0];
+ }
+ else if (&dummy_imports[0] == previous) {
+ return &dummy_imports[1];
+ }
+ else if (&dummy_imports[1] == previous) {
+ return NULL;
+ }
} /* DummyImports */
static const PRVersionInfo *DummyLibVersion(void)
@@ -113,7 +122,9 @@ int main(int argc, char **argv)
printf("Depend.c build time is %s %s\n", buildDate, buildTime);
- if (NULL != info) ChaseDependents(info, tab);
+ if (NULL != info) {
+ ChaseDependents(info, tab);
+ }
return 0;
} /* main */