Removed declaration and initialization of gChosen; it's not done in openfirmware.c.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4964 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -22,7 +22,6 @@ class ConsoleHandle : public Handle {
|
|||||||
|
|
||||||
static ConsoleHandle sInput, sOutput;
|
static ConsoleHandle sInput, sOutput;
|
||||||
FILE *stdin, *stdout, *stderr;
|
FILE *stdin, *stdout, *stderr;
|
||||||
int gChosen;
|
|
||||||
|
|
||||||
|
|
||||||
ConsoleHandle::ConsoleHandle()
|
ConsoleHandle::ConsoleHandle()
|
||||||
@@ -53,10 +52,6 @@ ConsoleHandle::WriteAt(void *cookie, off_t pos, const void *buffer, size_t buffe
|
|||||||
status_t
|
status_t
|
||||||
console_init(void)
|
console_init(void)
|
||||||
{
|
{
|
||||||
gChosen = of_finddevice("/chosen");
|
|
||||||
if (gChosen == OF_FAILED)
|
|
||||||
return B_ERROR;
|
|
||||||
|
|
||||||
int input, output;
|
int input, output;
|
||||||
if (of_getprop(gChosen, "stdin", &input, sizeof(int)) == OF_FAILED)
|
if (of_getprop(gChosen, "stdin", &input, sizeof(int)) == OF_FAILED)
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|||||||
Reference in New Issue
Block a user