3 - needs stdlib.h instead of casting return value of malloc
6 --- xmit.c~ 1996-12-22 03:49:54.000000000 +0000
8 @@ -30,6 +30,7 @@ static char *_sites_c_ident_ = "@(#)$Id:
16 @@ -571,12 +572,12 @@ cddbd_do_transmit(site_t *sp)
19 /* Don't transmit the same file twice. */
20 - if(list_find(li, (void *)(int)sbuf.st_ino) != 0) {
21 + if(list_find(li, (void *)(uintptr_t)sbuf.st_ino) != 0) {
26 - if(list_add_cur(li, (void *)(int)sbuf.st_ino) == 0) {
27 + if(list_add_cur(li, (void *)(uintptr_t)sbuf.st_ino) == 0) {
28 cddbd_log(LOG_ERR, "Can't malloc linked list entry.");
30 if(!cddbd_close_history()) {
31 @@ -1112,7 +1113,7 @@ cddbd_write_history(char *dir, unsigned
35 - if((tf = (tfile_t *)malloc(sizeof(tfile_t))) == NULL) {
36 + if((tf = malloc(sizeof(tfile_t))) == NULL) {
37 cddbd_log(LOG_ERR | LOG_XMIT,
38 "Can't malloc transmit list entry.");