Deleted Added
full compact
globals.c (15242) globals.c (15439)
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
7 * $Id: globals.c,v 1.11 1995/12/07 10:33:50 peter Exp $
7 * $Id: globals.c,v 1.12 1996/04/13 13:31:38 jkh Exp $
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 20 unchanged lines hidden (view full) ---

36
37#include "sysinstall.h"
38
39/*
40 * Various global variables and an initialization hook to set them to
41 * whatever values we feel are appropriate.
42 */
43
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 20 unchanged lines hidden (view full) ---

36
37#include "sysinstall.h"
38
39/*
40 * Various global variables and an initialization hook to set them to
41 * whatever values we feel are appropriate.
42 */
43
44int DebugFD; /* Where diagnostic output goes */
44int DebugFD; /* Where diagnostic output goes */
45Boolean Fake; /* Only pretend to be useful */
45Boolean RunningAsInit; /* Are we running as init? */
46Boolean RunningAsInit; /* Are we running as init? */
46Boolean DialogActive;
47Boolean ColorDisplay;
48Boolean OnVTY;
49Variable *VarHead; /* The head of the variable chain */
47Boolean DialogActive; /* Is libdialog initialized? */
48Boolean ColorDisplay; /* Are we on a color display? */
49Boolean OnVTY; /* Are we on a VTY? */
50Variable *VarHead; /* The head of the variable chain */
50Device *mediaDevice; /* Where we're installing from */
51Device *mediaDevice; /* Where we're installing from */
51int BootMgr;
52int BootMgr; /* Which boot manager we're using */
52
53/*
54 * Yes, I know some of these are already automatically initialized as
55 * globals. I simply find it clearer to set everything explicitly.
56 */
57void
58globalsInit(void)
59{
60 DebugFD = -1;
61 ColorDisplay = FALSE;
53
54/*
55 * Yes, I know some of these are already automatically initialized as
56 * globals. I simply find it clearer to set everything explicitly.
57 */
58void
59globalsInit(void)
60{
61 DebugFD = -1;
62 ColorDisplay = FALSE;
63 Fake = FALSE;
62 OnVTY = FALSE;
63 DialogActive = FALSE;
64 VarHead = NULL;
65 mediaDevice = NULL;
66 RunningAsInit = FALSE;
67}
64 OnVTY = FALSE;
65 DialogActive = FALSE;
66 VarHead = NULL;
67 mediaDevice = NULL;
68 RunningAsInit = FALSE;
69}