summaryrefslogtreecommitdiff
path: root/dhry_1.c
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2018-04-11 00:25:43 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2018-04-11 00:25:43 +0800
commit018fdeaf3d18086c517390e678dcfac05639cd18 (patch)
tree30468e3e0000f737dd5f6c25c3c72b312f33609f /dhry_1.c
parent23ae1e3992caf254128e03d640119e4ed1697eca (diff)
downloadstringbench-018fdeaf3d18086c517390e678dcfac05639cd18.tar.gz
Fix compiling problem reported with P Preview
Change-Id: I628c060557362920a45256f554d9814e8bfdc222 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'dhry_1.c')
-rw-r--r--dhry_1.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/dhry_1.c b/dhry_1.c
index 54cc1f5..4e6a6bb 100644
--- a/dhry_1.c
+++ b/dhry_1.c
@@ -114,7 +114,7 @@ int Int_Glob;
/* end of variables for time measurement */
- void main (int argc, char *argv[])
+ int main (int argc, char *argv[])
/*****/
/* main program, corresponds to procedures */
@@ -131,7 +131,7 @@ int Int_Glob;
Str_30 Str_2_Loc;
REG int Run_Index;
REG int Number_Of_Runs;
- int endit, count = 10;
+ int /*endit, */count = 10;
FILE *Ap;
char general[9][80] = {" "};
@@ -540,7 +540,7 @@ int Int_Glob;
fprintf (Ap, "%10d\n", Arr_2_Glob[8][7]);
fprintf (Ap, "Ptr_Glob-> \n");
- fprintf (Ap, " Ptr_Comp: * %x\n", (long) Ptr_Glob->Ptr_Comp);
+ fprintf (Ap, " Ptr_Comp: * %lx\n", (long) Ptr_Glob->Ptr_Comp);
fprintf (Ap, " Discr: ");
if (Ptr_Glob->Discr == 0) fprintf (Ap, "O.K. ");
@@ -566,7 +566,7 @@ int Int_Glob;
fprintf (Ap, "%s\n", Ptr_Glob->variant.var_1.Str_Comp);
fprintf (Ap, "Next_Ptr_Glob-> \n");
- fprintf (Ap, " Ptr_Comp: * %x", (long) Next_Ptr_Glob->Ptr_Comp);
+ fprintf (Ap, " Ptr_Comp: * %lx", (long) Next_Ptr_Glob->Ptr_Comp);
fprintf (Ap, " same as above\n");
fprintf (Ap, " Discr: ");
@@ -654,6 +654,8 @@ int Int_Glob;
printf("Press any key to exit\n");
printf ("\nIf this is displayed you must close the window in the normal way\n");
}
+
+ return 0;
}