diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2018-04-11 00:25:43 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2018-04-11 00:25:43 +0800 |
commit | 018fdeaf3d18086c517390e678dcfac05639cd18 (patch) | |
tree | 30468e3e0000f737dd5f6c25c3c72b312f33609f /dhry_1.c | |
parent | 23ae1e3992caf254128e03d640119e4ed1697eca (diff) | |
download | stringbench-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.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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; } |