winebuild: make a function void which always returns the same value

André Hentschel nerv at dawncrow.de
Tue Sep 14 13:07:59 CDT 2010


---
 tools/winebuild/parser.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/tools/winebuild/parser.c b/tools/winebuild/parser.c
index bc483c9..f12a040 100644
--- a/tools/winebuild/parser.c
+++ b/tools/winebuild/parser.c
@@ -381,12 +381,11 @@ static int parse_spec_equate( ORDDEF *odp, DLLSPEC *spec )
  *
  * Parse a 'stub' definition in a .spec file
  */
-static int parse_spec_stub( ORDDEF *odp, DLLSPEC *spec )
+static void parse_spec_stub( ORDDEF *odp, DLLSPEC *spec )
 {
     odp->u.func.nb_args = 0;
     odp->link_name = xstrdup("");
     odp->flags |= FLAG_CPU(CPU_x86) | FLAG_CPU(CPU_x86_64); /* don't bother generating stubs for Winelib */
-    return 1;
 }
 
 
@@ -545,7 +544,7 @@ static int parse_spec_ordinal( int ordinal, DLLSPEC *spec )
         if (!parse_spec_equate( odp, spec )) goto error;
         break;
     case TYPE_STUB:
-        if (!parse_spec_stub( odp, spec )) goto error;
+        parse_spec_stub( odp, spec );
         break;
     case TYPE_EXTERN:
         if (!parse_spec_extern( odp, spec )) goto error;
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list