Kill lots of warnings in DtSvc.

This commit is contained in:
Pascal Stumpf
2013-07-21 22:55:09 +02:00
committed by Jon Trulson
parent 0d7568e843
commit 8f98ac92cd
42 changed files with 275 additions and 185 deletions

View File

@@ -36,6 +36,8 @@
#include "/usr/include/apollo/shlib.h"
#endif
#include <Dt/UserMsg.h>
#include <bms/sbport.h> /* NOTE: sbport.h must be the first include. */
#include <bms/bms.h>
@@ -55,8 +57,8 @@ void * XeMalloc( size_t size )
XeString ptr;
if (!size) return 0;
if (ptr = malloc(size)) {
*ptr = (XeChar)NULL; /* Force first byte to NULL for bozos who */
if ((ptr = malloc(size))) {
*ptr = (XeChar)0; /* Force first byte to NULL for bozos who */
/* think malloc zeros memory! */
return ptr;
}