1 |
|
/* |
2 |
|
* sheep_net.cpp - Net server add-on for SheepShaver and Basilisk II |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2000 Mar"c" Hellwig and Christian Bauer |
5 |
< |
* Basilisk II (C) 1997-2000 Christian Bauer |
4 |
> |
* SheepShaver (C) 1997-2008 Marc Hellwig and Christian Bauer |
5 |
> |
* Basilisk II (C) 1997-2008 Christian Bauer |
6 |
|
* |
7 |
|
* This program is free software; you can redistribute it and/or modify |
8 |
|
* it under the terms of the GNU General Public License as published by |
211 |
|
D(bug("init sheep-net\n")); |
212 |
|
|
213 |
|
// Create packet buffer |
214 |
< |
if ((buffer_area = create_area("packet buffer", &net_buffer_ptr, B_ANY_ADDRESS, buffer_size, B_FULL_LOCK, B_READ_AREA | B_WRITE_AREA)) < B_NO_ERROR) { |
214 |
> |
if ((buffer_area = create_area("packet buffer", (void **)&net_buffer_ptr, B_ANY_ADDRESS, buffer_size, B_FULL_LOCK, B_READ_AREA | B_WRITE_AREA)) < B_NO_ERROR) { |
215 |
|
D(bug("FATAL ERROR: can't create shared area\n")); |
216 |
|
return; |
217 |
|
} |