snprintf(new_name, size, "%s[%d]", program_name, getpid());
snprintf(new_name, size, "%s[%d]", program_name, (int)getpid());
static void accept_callback(int fd, int socktype, void *cdata){	int pid;	int size;	char *new_name;	accept_callback_data* adata = (accept_callback_data*)cdata;	int retval;	/* fork and let the parent return */	pid = fork();	if (pid < 0) {		fatal(_("fork failed: %s"), strerror(errno));	} else if (pid > 0) {		/* parent */		return;	}	/* setup program_name */	size = strlen(program_name) + 10;	new_name = (char*) xmalloc(size * sizeof(char));	snprintf(new_name, size, "%s[%d]", program_name, getpid());	program_name = new_name;		/* issue callback */	retval = adata->callback(adata->attrs, fd, socktype);	exit((retval)? EXIT_FAILURE : EXIT_SUCCESS);}