plugins/nbd/nbd.c
/* Check the user did pass a socket=<SOCKNAME> parameter. */
Check the user did pass a socket= parameter.
Check the user did pass a socket = parameter .
static int
nbd_config_complete (void)
{
  struct sockaddr_un sock;
  if (sockname == NULL) {
    nbdkit_error ("you must supply the socket=<SOCKNAME> parameter "
                  "after the plugin name on the command line");
    return -1;
  }
  if (strlen (sockname) > sizeof sock.sun_path) {
    nbdkit_error ("socket file name too large");
    return -1;
  }
  if (!export)
    export = strdup ("");
  if (!export) {
    nbdkit_error ("memory failure: %m");
    return -1;
  }
  return 0;
}
static int nbd_config_complete ( void ) { struct sockaddr_un sock ; if ( sockname == NULL ) { nbdkit_error ( " " " " ) ; return -1 ; } if ( strlen ( sockname ) > sizeof sock . sun_path ) { nbdkit_error ( " " ) ; return -1 ; } if ( ! export ) export = strdup ( " " ) ; if ( ! export ) { nbdkit_error ( " " ) ; return -1 ; } return 0 ; }
Check the user did pass a socket=<SOCKNAME> parameter.
Check the user did pass a socket = <SOCKNAME > parameter .