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:
Jordan K. Hubbard 1996-10-03 00:42:27 +00:00
parent 4a8aeffeb2
commit 0c8c5f852a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18647
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)
{