/*
* Open socket.
*/
- pr = (struct PFwdPrivate *) smalloc(sizeof(struct PFwdPrivate));
+ pr = snew(struct PFwdPrivate);
pr->fn = &fn_table;
pr->throttled = pr->throttle_override = 0;
pr->ready = 1;
char *err;
org = (struct PFwdPrivate *)p;
- pr = (struct PFwdPrivate *) smalloc(sizeof(struct PFwdPrivate));
+ pr = snew(struct PFwdPrivate);
pr->fn = &fn_table;
pr->c = NULL;
/*
* Open socket.
*/
- pr = (struct PFwdPrivate *) smalloc(sizeof(struct PFwdPrivate));
+ pr = snew(struct PFwdPrivate);
pr->fn = &fn_table;
pr->c = NULL;
strcpy(pr->hostname, desthost);