snp.c (12678) | snp.c (12813) |
---|---|
1/* 2 * Copyright (c) 1995 Ugen J.S.Antsilevich 3 * 4 * Redistribution and use in source forms, with and without modification, 5 * are permitted provided that this entire comment appears intact. 6 * 7 * Redistribution in binary form may occur without any restrictions. 8 * Obviously, it would be nice if you gave credit where credit is due --- 51 unchanged lines hidden (view full) --- 60 61static struct tty * 62devtotty (dev) 63 dev_t dev; 64{ 65 if (major(dev) > nchrdev) 66 return (NULL); /* no such device available */ 67 | 1/* 2 * Copyright (c) 1995 Ugen J.S.Antsilevich 3 * 4 * Redistribution and use in source forms, with and without modification, 5 * are permitted provided that this entire comment appears intact. 6 * 7 * Redistribution in binary form may occur without any restrictions. 8 * Obviously, it would be nice if you gave credit where credit is due --- 51 unchanged lines hidden (view full) --- 60 61static struct tty * 62devtotty (dev) 63 dev_t dev; 64{ 65 if (major(dev) > nchrdev) 66 return (NULL); /* no such device available */ 67 |
68 return (*cdevsw[major(dev)].d_devtotty)(dev); | 68 return (*cdevsw[major(dev)]->d_devtotty)(dev); |
69} 70 71#define SNP_INPUT_BUF 5 /* This is even too much,the maximal 72 * interactive mode write is 3 bytes 73 * length for function keys... 74 */ 75 76static int --- 465 unchanged lines hidden --- | 69} 70 71#define SNP_INPUT_BUF 5 /* This is even too much,the maximal 72 * interactive mode write is 3 bytes 73 * length for function keys... 74 */ 75 76static int --- 465 unchanged lines hidden --- |