Silence lots of warnings in lib/DtHelp.

* 64bit warnings
* Missing prototypes
* explicit parentheses / brackets

There's still some work to be done, but, as always, it's a start ...
This commit is contained in:
Pascal Stumpf
2013-07-22 18:44:04 +02:00
committed by Jon Trulson
parent 0c165f56f5
commit 7e0a9517e3
65 changed files with 259 additions and 152 deletions

View File

@@ -46,6 +46,7 @@
#include "ilpipelem.h"
#include "ilerrors.h"
#include <Xm/XmPrivate.h>
#define X_COLOR_MAX 65535 /* max value for X colormap RGB
value */
@@ -318,10 +319,11 @@ double spreadFactor;
/* Use the grays if the same number, else deallocate them.
*/
context->error = IL_OK; /* assume no errors */
if (pXWC->pGrays)
if (pXWC->pGrays) {
if (pXWC->nGrays == nGrays)
return TRUE;
else ilFreeColorData (pXWC, IL_FREE_XGRAYS);
}
if (nGrays > 256)
return FALSE; /* EXIT */