fixed config parser

This commit is contained in:
albert 2002-12-04 01:59:45 +00:00
parent 1ab9afe8a5
commit cec50aa831

View File

@ -196,7 +196,7 @@ unsigned dev_to_tty(char *restrict ret, unsigned chop, int dev, int pid, unsigne
unsigned i = 0;
int c;
if((short)dev == (short)0) goto no_tty;
if(linux_version_code > LINUX_VERSION(2, 5, 0)){ /* didn't get done yet */
if(linux_version_code > LINUX_VERSION(2, 7, 0)){ // not likely to make 2.6.xx
if(link_name(tmp, major(dev), minor(dev), pid, "tty" )) goto abbrev;
}
if(driver_name(tmp, major(dev), minor(dev) )) goto abbrev;