[ros-diffs] [tkreuzer] 38582: Silence warnings on linux hosts

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Mon Jan 5 13:55:13 CET 2009


Author: tkreuzer
Date: Mon Jan  5 06:55:13 2009
New Revision: 38582

URL: http://svn.reactos.org/svn/reactos?rev=38582&view=rev
Log:
Silence warnings on linux hosts

Modified:
    trunk/reactos/tools/rsym.c

Modified: trunk/reactos/tools/rsym.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rsym.c?rev=38582&r1=38581&r2=38582&view=diff
==============================================================================
--- trunk/reactos/tools/rsym.c [iso-8859-1] (original)
+++ trunk/reactos/tools/rsym.c [iso-8859-1] Mon Jan  5 06:55:13 2009
@@ -489,7 +489,7 @@
   *ProcessedRelocs = malloc(RelocSectionHeader->SizeOfRawData);
   if (NULL == *ProcessedRelocs)
     {
-      fprintf(stderr, "Failed to allocate %lu bytes for relocations\n", RelocSectionHeader->SizeOfRawData);
+      fprintf(stderr, "Failed to allocate %u bytes for relocations\n", (unsigned int)RelocSectionHeader->SizeOfRawData);
       return 1;
     }
   *ProcessedRelocsLength = 0;
@@ -565,7 +565,7 @@
   OutHeader = malloc(StartOfRawData);
   if (NULL == OutHeader)
     {
-      fprintf(stderr, "Failed to allocate %lu bytes for output file header\n", StartOfRawData);
+      fprintf(stderr, "Failed to allocate %u bytes for output file header\n", (unsigned int)StartOfRawData);
       return 1;
     }
   memset(OutHeader, '\0', StartOfRawData);
@@ -678,7 +678,7 @@
       PaddedRosSym = malloc(RosSymFileLength);
       if (NULL == PaddedRosSym)
         {
-          fprintf(stderr, "Failed to allocate %lu bytes for padded .rossym\n", RosSymFileLength);
+          fprintf(stderr, "Failed to allocate %u bytes for padded .rossym\n", (unsigned int)RosSymFileLength);
           return 1;
         }
       memcpy(PaddedRosSym, RosSymSection, RosSymLength);



More information about the Ros-diffs mailing list