X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/cf418db388138ffe1a79a336c77de1ab0374e740..17cea80917206c92bd0029bd620bd718926eae9c:/src/hftctl.c?ds=sidebyside diff --git a/src/hftctl.c b/src/hftctl.c index 7f6cc91949..5fe816abbb 100644 --- a/src/hftctl.c +++ b/src/hftctl.c @@ -20,7 +20,7 @@ /* 2. places fildes into raw mode */ /* 3. converts ioctl arguments to datastream */ /* 4. waits for 2 secs for acknowledgement before */ -/* timimg out. */ +/* timing out. */ /* 5. places response in callers buffer ( just like */ /* ioctl. */ /* 6. returns fildes to its original mode */ @@ -41,13 +41,15 @@ /* */ /***************************************************************/ +#include +#include + +#include #include #include -#include #include #include -#include #include #include #include @@ -55,6 +57,7 @@ #include #include /* #include */ + #define REMOTE 0x01 #undef ioctl @@ -62,8 +65,6 @@ static char SCCSid[] = "com/gnuemacs/src,3.1,9021-90/05/03-5/3/90"; /*************** LOCAL DEFINES **********************************/ -typedef int (*FUNC)(); /* pointer to a function */ - #define QDEV ((HFQPDEVCH<<8)|HFQPDEVCL) #define QLOC ((HFQLOCCH<<8)|HFQLOCCL) #define QPS ((HFQPRESCH<<8)|HFQPRESCL) @@ -84,7 +85,7 @@ static int hfskbd(); extern int errno; static jmp_buf hftenv; static int is_ack_vtd; -static FUNC sav_alrm; +static SIGTYPE (*sav_alrm) (); static struct hfctlreq req = { 0x1b,'[','x',0,0,0,21,HFCTLREQCH,HFCTLREQCL}; static struct hfctlack ACK =