Stomp another compiler warning: sc_devfs_token[] should only be declared

if DEVFS is #defined.
This commit is contained in:
Bill Paul 1996-06-17 17:21:35 +00:00
parent 8a095c52ed
commit afe0e92aa8
3 changed files with 9 additions and 3 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.149 1996/05/12 12:36:59 joerg Exp $
* $Id: syscons.c,v 1.150 1996/05/27 06:02:52 peter Exp $
*/
#include "sc.h"
@ -90,7 +90,9 @@ static default_attr kernel_default = {
static scr_stat main_console;
static scr_stat *console[MAXCONS];
#ifdef DEVFS
static void *sc_devfs_token[MAXCONS];
#endif
scr_stat *cur_console;
static scr_stat *new_scp, *old_scp;
static term_stat kernel_console;

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.149 1996/05/12 12:36:59 joerg Exp $
* $Id: syscons.c,v 1.150 1996/05/27 06:02:52 peter Exp $
*/
#include "sc.h"
@ -90,7 +90,9 @@ static default_attr kernel_default = {
static scr_stat main_console;
static scr_stat *console[MAXCONS];
#ifdef DEVFS
static void *sc_devfs_token[MAXCONS];
#endif
scr_stat *cur_console;
static scr_stat *new_scp, *old_scp;
static term_stat kernel_console;

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.149 1996/05/12 12:36:59 joerg Exp $
* $Id: syscons.c,v 1.150 1996/05/27 06:02:52 peter Exp $
*/
#include "sc.h"
@ -90,7 +90,9 @@ static default_attr kernel_default = {
static scr_stat main_console;
static scr_stat *console[MAXCONS];
#ifdef DEVFS
static void *sc_devfs_token[MAXCONS];
#endif
scr_stat *cur_console;
static scr_stat *new_scp, *old_scp;
static term_stat kernel_console;