···508508}509509510510/* Find a free SLCAN channel, and link in this `tty' line. */511511-static struct slcan *slc_alloc(dev_t line)511511+static struct slcan *slc_alloc(void)512512{513513 int i;514514 char name[IFNAMSIZ];···583583584584 /* OK. Find a free SLCAN channel to use. */585585 err = -ENFILE;586586- sl = slc_alloc(tty_devnum(tty));586586+ sl = slc_alloc();587587 if (sl == NULL)588588 goto err_exit;589589