/* * This is a non-class BSOCK "constructor" because we want to * call the Bacula smartalloc routines instead of new. */ BSOCK *new_bsock() { BSOCK *bsock = (BSOCK *)malloc(sizeof(BSOCK)); bsock->init(); return bsock; }