scresume erroneously used before declared. Move the function

rather than add another APM ifdef just for the forward decl.
[Boy, sure a lot of warnings in here!]
This commit is contained in:
jkh 1996-10-03 00:42:27 +00:00
parent c97ef12c6f
commit 2639570a5e
3 changed files with 30 additions and 30 deletions

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: syscons.c,v 1.174 1996/10/01 07:38:14 jkh Exp $
* $Id: syscons.c,v 1.176 1996/10/02 22:00:38 sos Exp $
*/
#include "sc.h"
@ -352,6 +352,15 @@ scprobe(struct isa_device *dev)
return (IO_KBDSIZE);
}
#if NAPM > 0
static int
scresume(void *dummy)
{
shfts = ctls = alts = agrs = metas = 0;
return 0;
}
#endif
static int
scattach(struct isa_device *dev)
{
@ -435,15 +444,6 @@ scattach(struct isa_device *dev)
return 0;
}
#if NAPM > 0
static int
scresume(void *dummy)
{
shfts = ctls = alts = agrs = metas = 0;
return 0;
}
#endif
struct tty
*scdevtotty(dev_t dev)
{

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: syscons.c,v 1.174 1996/10/01 07:38:14 jkh Exp $
* $Id: syscons.c,v 1.176 1996/10/02 22:00:38 sos Exp $
*/
#include "sc.h"
@ -352,6 +352,15 @@ scprobe(struct isa_device *dev)
return (IO_KBDSIZE);
}
#if NAPM > 0
static int
scresume(void *dummy)
{
shfts = ctls = alts = agrs = metas = 0;
return 0;
}
#endif
static int
scattach(struct isa_device *dev)
{
@ -435,15 +444,6 @@ scattach(struct isa_device *dev)
return 0;
}
#if NAPM > 0
static int
scresume(void *dummy)
{
shfts = ctls = alts = agrs = metas = 0;
return 0;
}
#endif
struct tty
*scdevtotty(dev_t dev)
{

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: syscons.c,v 1.174 1996/10/01 07:38:14 jkh Exp $
* $Id: syscons.c,v 1.176 1996/10/02 22:00:38 sos Exp $
*/
#include "sc.h"
@ -352,6 +352,15 @@ scprobe(struct isa_device *dev)
return (IO_KBDSIZE);
}
#if NAPM > 0
static int
scresume(void *dummy)
{
shfts = ctls = alts = agrs = metas = 0;
return 0;
}
#endif
static int
scattach(struct isa_device *dev)
{
@ -435,15 +444,6 @@ scattach(struct isa_device *dev)
return 0;
}
#if NAPM > 0
static int
scresume(void *dummy)
{
shfts = ctls = alts = agrs = metas = 0;
return 0;
}
#endif
struct tty
*scdevtotty(dev_t dev)
{