[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ros-diffs
Subject:    [ros-diffs] [hpoussin] 17587: Remove warnings
From:       <hpoussin () svn ! reactos ! com>
Date:       2005-08-28 15:29:43
Message-ID: 000001c5abe5$50aa84a0$6b01a8c0 () PENELOPE
[Download RAW message or body]

Remove warnings
Modified: trunk/rosapps/sysutils/pedump/pedump.c
Modified: trunk/rosapps/sysutils/pedump/pedump.xml
  _____  

Modified: trunk/rosapps/sysutils/pedump/pedump.c
--- trunk/rosapps/sysutils/pedump/pedump.c	2005-08-28 15:07:45 UTC
(rev 17586)
+++ trunk/rosapps/sysutils/pedump/pedump.c	2005-08-28 15:29:36 UTC
(rev 17587)
@@ -880,7 +880,7 @@

 void WINAPI GetPreviousParamString (char *, char *);
 void WINAPI TranslateParameters (char **, char **, char **);
 BOOL WINAPI StringExpands (char **, char **, char **, Str_P *);
-LPVOID WINAPI TranslateFunctionName (char *);
+char * WINAPI TranslateFunctionName (char *);
 
 /* export section info */
 int WINAPI GetExportFunctionNames (LPVOID, char **);
@@ -1949,7 +1949,7 @@
 //                                                         October 5,
1997
 //
 /* translate condesed import function name */
-LPVOID WINAPI
+char * WINAPI
 TranslateFunctionName (
 			char *psz)
 {
@@ -2688,7 +2688,7 @@
 	}
       else
 	{
-	  sprintf (buff, "RT_UNKNOWN:%08X", prdeName);
+	  sprintf (buff, "RT_UNKNOWN:%08lX", prdeName);
 	  strcpy (pMem, buff);
 	  pMem += 20;
 	}
@@ -3143,7 +3143,7 @@
   for (i = 0; i < prdName->NumberOfIdEntries; i++)
     {
 
-      sprintf (buff, "MenuId_%04X", (prde->Name));
+      sprintf (buff, "MenuId_%04lX", (prde->Name));
       strcpy (pMem, buff);
       pMem += strlen (buff) + 1;
 
@@ -3537,7 +3537,7 @@
   for (i = 0; i < prdName->NumberOfIdEntries; i++)
     {
 
-      sprintf (buff, "DialogId_%04X", (prde->Name));
+      sprintf (buff, "DialogId_%04lX", (prde->Name));
       strcpy (pMem, buff);
       pMem += strlen (buff) + 1;
 
@@ -4061,7 +4061,7 @@
   if (fileType != IMAGE_NT_SIGNATURE)
     {
       printf (
-	       "%s: This file is not in PE format (magic = 0x%08x).\n",
+	       "%s: This file is not in PE format (magic = 0x%08lx).\n",
 	       argv[0],
 	       fileType
 	);
@@ -4108,7 +4108,7 @@
       if (poh->BaseOfCode == shdr[i].VirtualAddress)
 	{
 	  printf (
-		   "Code Offset = %08X, Code Size = %08X \n",
+		   "Code Offset = %08lX, Code Size = %08lX \n",
 		   shdr[i].PointerToRawData,
 		   shdr[i].SizeOfRawData
 	    );
@@ -4116,7 +4116,7 @@
       if (((shdr[i].Characteristics) & 0xC0000040) == 0xC0000040)
 	{
 	  printf (
-		   "Data Offset = %08X, Data Size = %08X \n",
+		   "Data Offset = %08lX, Data Size = %08lX \n",
 		   shdr[i].PointerToRawData,
 		   shdr[i].SizeOfRawData
 	    );
@@ -4152,7 +4152,7 @@
       shdr[i].Name[7] = 0;
     }
   for (i = 0; i < nSections; i++)
-    printf ("\n   Object%02d: %8s RVA: %08X Offset: %08X Size: %08X
Flags: %08X ",
+    printf ("\n   Object%02d: %8s RVA: %08lX Offset: %08lX Size: %08lX
Flags: %08lX ",
       i + 1, shdr[i].Name, shdr[i].VirtualAddress,
shdr[i].PointerToRawData,
 	    shdr[i].SizeOfRawData, shdr[i].Characteristics);
   /*
  _____  

Modified: trunk/rosapps/sysutils/pedump/pedump.xml
--- trunk/rosapps/sysutils/pedump/pedump.xml	2005-08-28 15:07:45 UTC
(rev 17586)
+++ trunk/rosapps/sysutils/pedump/pedump.xml	2005-08-28 15:29:36 UTC
(rev 17587)
@@ -1,4 +1,4 @@

-<module name="pedump" type="win32cui" installbase="system32"
installname="pedump.exe" warnings="true">
+<module name="pedump" type="win32cui" installbase="system32"
installname="pedump.exe">
 	<linkerflag>--numeric-sort</linkerflag>
 	<define name="__USE_W32API" />
 	<define name="_WIN32_IE">0x0501</define>

[Attachment #3 (text/html)]

<html>
<head>
<style>
<!--
body { background-color:#ffffff }
.file { border:1px solid #eeeeee; margin-top:1em; margin-bottom:1em }
.pathname { font-family:monospace; float:right }
.fileheader { margin-bottom:.5em }
.diff { margin:0 }
.tasklist { padding:4px; border:1px dashed #000000; margin-top:1em }
.tasklist ul { margin-top:0; margin-bottom:0 }
tr.alt { background-color:#eeeeee }
#added { background-color:#ddffdd }
#addedchars { background-color:#99ff99; font-weight:bolder }
tr.alt #added { background-color:#ccf7cc }
#removed { background-color:#ffdddd }
#removedchars { background-color:#ff9999; font-weight:bolder }
tr.alt #removed { background-color:#f7cccc }
#info { color:#888888 }
#context { background-color:#eeeeee }
td {padding-left:.3em; padding-right:.3em }
tr.head { border-bottom-width:1px; border-bottom-style:solid }
tr.head td { padding:0; padding-top:.2em }
.task { background-color:#ffff00 }
.comment { padding:4px; border:1px dashed #000000; background-color:#ffffdd }
.error { color:red }
hr { border-width:0px; height:2px; background:black }
-->
</style>
</head>
<body>
<pre class="comment">Remove warnings</pre><pre class="diff" id="context">Modified: \
                trunk/rosapps/sysutils/pedump/pedump.c
Modified: trunk/rosapps/sysutils/pedump/pedump.xml
</pre><hr /><div class="file">
<div class="fileheader"><big><b>Modified: \
trunk/rosapps/sysutils/pedump/pedump.c</b></big></div> <pre class="diff"><small \
id="info">--- trunk/rosapps/sysutils/pedump/pedump.c	2005-08-28 15:07:45 UTC (rev \
                17586)
+++ trunk/rosapps/sysutils/pedump/pedump.c	2005-08-28 15:29:36 UTC (rev 17587)
@@ -880,7 +880,7 @@
</small></pre><pre class="diff" id="context"> void WINAPI GetPreviousParamString \
(char *, char *);  void WINAPI TranslateParameters (char **, char **, char **);
 BOOL WINAPI StringExpands (char **, char **, char **, Str_P *);
</pre><pre class="diff" id="removed">-<span id="removedchars">LPVOID</span> WINAPI \
TranslateFunctionName (char *); </pre><pre class="diff" id="added">+<span \
id="addedchars">char *</span> WINAPI TranslateFunctionName (char *); </pre><pre \
class="diff" id="context">   /* export section info */
 int WINAPI GetExportFunctionNames (LPVOID, char **);
@@ -1949,7 +1949,7 @@
</pre><pre class="diff" id="context"> // &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; October 5, 1997 \
//  /* translate condesed import function name */
</pre><pre class="diff" id="removed">-<span id="removedchars">LPVOID</span> WINAPI
</pre><pre class="diff" id="added">+<span id="addedchars">char *</span> WINAPI
</pre><pre class="diff" id="context"> TranslateFunctionName (
 			char *psz)
 {
@@ -2688,7 +2688,7 @@
</pre><pre class="diff" id="context"> 	}
 &nbsp; &nbsp; &nbsp; else
 	{
</pre><pre class="diff" id="removed">-	 &nbsp;sprintf (buff, \
&quot;RT_UNKNOWN:%08X&quot;, prdeName); </pre><pre class="diff" id="added">+	 \
&nbsp;sprintf (buff, &quot;RT_UNKNOWN:%08<span id="addedchars">l</span>X&quot;, \
prdeName); </pre><pre class="diff" id="context"> 	 &nbsp;strcpy (pMem, buff);
 	 &nbsp;pMem += 20;
 	}
@@ -3143,7 +3143,7 @@
</pre><pre class="diff" id="context"> &nbsp; for (i = 0; i &lt; \
prdName-&gt;NumberOfIdEntries; i++)  &nbsp; &nbsp; {
 
</pre><pre class="diff" id="removed">- &nbsp; &nbsp; &nbsp;sprintf (buff, \
&quot;MenuId_%04X&quot;, (prde-&gt;Name)); </pre><pre class="diff" id="added">+ \
&nbsp; &nbsp; &nbsp;sprintf (buff, &quot;MenuId_%04<span \
id="addedchars">l</span>X&quot;, (prde-&gt;Name)); </pre><pre class="diff" \
id="context"> &nbsp; &nbsp; &nbsp; strcpy (pMem, buff);  &nbsp; &nbsp; &nbsp; pMem += \
strlen (buff) + 1;  
@@ -3537,7 +3537,7 @@
</pre><pre class="diff" id="context"> &nbsp; for (i = 0; i &lt; \
prdName-&gt;NumberOfIdEntries; i++)  &nbsp; &nbsp; {
 
</pre><pre class="diff" id="removed">- &nbsp; &nbsp; &nbsp;sprintf (buff, \
&quot;DialogId_%04X&quot;, (prde-&gt;Name)); </pre><pre class="diff" id="added">+ \
&nbsp; &nbsp; &nbsp;sprintf (buff, &quot;DialogId_%04<span \
id="addedchars">l</span>X&quot;, (prde-&gt;Name)); </pre><pre class="diff" \
id="context"> &nbsp; &nbsp; &nbsp; strcpy (pMem, buff);  &nbsp; &nbsp; &nbsp; pMem += \
strlen (buff) + 1;  
@@ -4061,7 +4061,7 @@
</pre><pre class="diff" id="context"> &nbsp; if (fileType != IMAGE_NT_SIGNATURE)
 &nbsp; &nbsp; {
 &nbsp; &nbsp; &nbsp; printf (
</pre><pre class="diff" id="removed">-	 &nbsp; &nbsp; &nbsp; &quot;%s: This file is \
not in PE format (magic = 0x%08x).\n&quot;, </pre><pre class="diff" id="added">+	 \
&nbsp; &nbsp; &nbsp; &quot;%s: This file is not in PE format (magic = 0x%08<span \
id="addedchars">l</span>x).\n&quot;, </pre><pre class="diff" id="context"> 	 &nbsp; \
&nbsp; &nbsp; argv[0],  &nbsp; &nbsp; &nbsp; fileType
 	);
@@ -4108,7 +4108,7 @@
</pre><pre class="diff" id="context"> &nbsp; &nbsp; &nbsp; if (poh-&gt;BaseOfCode == \
shdr[i].VirtualAddress)  {
 	 &nbsp;printf (
</pre><pre class="diff" id="removed">-		 &nbsp; &quot;Code Offset = %08<span \
id="removedchars">X, Code Size = %08</span>X \n&quot;, </pre><pre class="diff" \
id="added">+		 &nbsp; &quot;Code Offset = %08<span id="addedchars">lX, Code Size = \
%08l</span>X \n&quot;, </pre><pre class="diff" id="context"> 		 &nbsp; \
shdr[i].PointerToRawData,  &nbsp; shdr[i].SizeOfRawData
 	 &nbsp; &nbsp;);
@@ -4116,7 +4116,7 @@
</pre><pre class="diff" id="context"> &nbsp; &nbsp; &nbsp; if \
(((shdr[i].Characteristics) &amp; 0xC0000040) == 0xC0000040)  {
 	 &nbsp;printf (
</pre><pre class="diff" id="removed">-		 &nbsp; &quot;Data Offset = %08<span \
id="removedchars">X, Data Size = %08</span>X \n&quot;, </pre><pre class="diff" \
id="added">+		 &nbsp; &quot;Data Offset = %08<span id="addedchars">lX, Data Size = \
%08l</span>X \n&quot;, </pre><pre class="diff" id="context"> 		 &nbsp; \
shdr[i].PointerToRawData,  &nbsp; shdr[i].SizeOfRawData
 	 &nbsp; &nbsp;);
@@ -4152,7 +4152,7 @@
</pre><pre class="diff" id="context"> &nbsp; &nbsp; &nbsp; shdr[i].Name[7] = 0;
 &nbsp; &nbsp; }
 &nbsp; for (i = 0; i &lt; nSections; i++)
</pre><pre class="diff" id="removed">- &nbsp; &nbsp;printf (&quot;\n &nbsp; \
Object%02d: %8s RVA: %08<span id="removedchars">X Offset: %08X Size: %08X Flags: \
%08</span>X &quot;, </pre><pre class="diff" id="added">+ &nbsp; &nbsp;printf \
(&quot;\n &nbsp; Object%02d: %8s RVA: %08<span id="addedchars">lX Offset: %08lX Size: \
%08lX Flags: %08l</span>X &quot;, </pre><pre class="diff" id="context"> &nbsp; &nbsp; \
&nbsp; i + 1, shdr[i].Name, shdr[i].VirtualAddress, shdr[i].PointerToRawData,  &nbsp; \
&nbsp;shdr[i].SizeOfRawData, shdr[i].Characteristics);  &nbsp; /*
</pre></div>
<hr /><div class="file">
<div class="fileheader"><big><b>Modified: \
trunk/rosapps/sysutils/pedump/pedump.xml</b></big></div> <pre class="diff"><small \
id="info">--- trunk/rosapps/sysutils/pedump/pedump.xml	2005-08-28 15:07:45 UTC (rev \
                17586)
+++ trunk/rosapps/sysutils/pedump/pedump.xml	2005-08-28 15:29:36 UTC (rev 17587)
@@ -1,4 +1,4 @@
</small></pre><pre class="diff" id="removed">-&lt;module name=&quot;pedump&quot; \
type=&quot;win32cui&quot; installbase=&quot;system32&quot; \
installname=&quot;pedump.exe&quot;<span id="removedchars"> \
warnings=&quot;true&quot;</span>&gt; </pre><pre class="diff" id="added">+&lt;module \
name=&quot;pedump&quot; type=&quot;win32cui&quot; installbase=&quot;system32&quot; \
installname=&quot;pedump.exe&quot;&gt; </pre><pre class="diff" id="context"> \
&lt;linkerflag&gt;--numeric-sort&lt;/linkerflag&gt;  &lt;define \
name=&quot;__USE_W32API&quot; /&gt;  &lt;define \
name=&quot;_WIN32_IE&quot;&gt;0x0501&lt;/define&gt; </pre>
</div>

</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic