int i, ptrflg;
int i;
InitKbdMouse(void){    static int inited;    int i, ptrflg;    if (inited)        return;    inited = 1;    if (decKbdDev == NULL)        decKbdDev = "/dev/wskbd0";    if (decPtrDev == NULL) {        if (decSerMouse)            decPtrDev = "/dev/ttyB0";        else            decPtrDev = "/dev/wsmouse0";    }    if (decSerMouse) {    	/* Mouse will not set DSR. */        ptrflg = O_RDWR | O_NONBLOCK;    } else    	ptrflg = O_RDWR;    /* warn(3) isn't X11 API, but we know we are on NetBSD */    if((decKbdPriv.fd = open (decKbdDev, O_RDWR, 0)) == -1)	warn("Keyboard device %s", decKbdDev);    else if((decPtrPriv.fd = open (decPtrDev, ptrflg, 0)) == -1)	warn("Pointer device %s", decPtrDev);    (void) ioctl (decKbdPriv.fd, WSKBDIO_GTYPE, &decKbdPriv.type);}