int i;
char *s;
char argnFieldName[
- sizeof(_DtACTION_TTN_ARG) + /* ARGn prefix */
+ sizeof(_DtACTION_TTN_ARG) + /* ARGn prefix */
3 + /* space for 3 decimal digits */
- sizeof(_DtACTION_TTN_REP_TYPE)]; /* space for longest suffix */
+ sizeof(_DtACTION_TTN_REP_TYPE) /* space for longest suffix */
+ + 8]; /* addition space for warning prevention incase the digits are more than 3 */
char *buf;
myassert(actionType); /* actionType should never be NULL */
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
intlist_t * ptr = (intlist_t *) intlist;
int ** data;
- data = (int**)_DtUtilGetHash(ptr->tbl, (unsigned char *)keyin);
+ data = (int**)_DtUtilGetHash(ptr->tbl, (unsigned char *) (intptr_t) keyin);
if(!*data) /* new */ {
*data = (int *) malloc(sizeof(int));
#include <stdio.h>
#include <string.h>
+#include <stdint.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
unsigned char ** sptr;
*isnew = 1;
*bucket = ret = ptr->sl_charcount;
- sptr = (unsigned char**)_DtUtilGetHash(ptr->sl_bosons, (const unsigned char *)ret);
+ sptr = (unsigned char**)_DtUtilGetHash(ptr->sl_bosons, (const unsigned char *) (intptr_t) ret);
*sptr = (unsigned char*)strdup(string);
ptr->sl_charcount += strlen(string) + 1;
}
strlist_t * ptr = (strlist_t *) prototab;
unsigned char ** sptr;
- sptr = (unsigned char **) _DtUtilFindHash(ptr->sl_bosons, (const unsigned char *) boson);
+ sptr = (unsigned char **) _DtUtilFindHash(ptr->sl_bosons, (const unsigned char *) (intptr_t) boson);
return(sptr?((const char *)*sptr):NULL);
}