libnetapi: Remove __gNetAPIStart.
Not used by anything.
This commit is contained in:
@@ -41,8 +41,6 @@ struct r5_sockaddr_in {
|
||||
extern bool __gR5Compatibility;
|
||||
extern addr_t __gNetworkStart;
|
||||
extern addr_t __gNetworkEnd;
|
||||
extern addr_t __gNetAPIStart;
|
||||
extern addr_t __gNetAPIEnd;
|
||||
|
||||
|
||||
static inline bool
|
||||
|
||||
@@ -36,7 +36,6 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
||||
}
|
||||
|
||||
SharedLibrary [ MultiArchDefaultGristFiles libbnetapi.so ] :
|
||||
init.cpp
|
||||
DynamicBuffer.cpp
|
||||
NetEndpoint.cpp
|
||||
NetAddress.cpp
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
/*
|
||||
* Copyright 2006-2008, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
* Axel Dörfler, [email protected]
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <image.h>
|
||||
#include <OS.h>
|
||||
|
||||
#include <r5_compatibility.h>
|
||||
|
||||
|
||||
static void
|
||||
find_own_image(image_id id)
|
||||
{
|
||||
image_info info;
|
||||
if (get_image_info(id, &info) == B_OK) {
|
||||
__gNetAPIStart = (addr_t)min_c(info.text, info.data);
|
||||
__gNetAPIEnd = min_c((addr_t)info.text + info.text_size,
|
||||
(addr_t)info.data + info.data_size);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
extern "C" void
|
||||
initialize_before(image_id id)
|
||||
{
|
||||
// If in compatibility mode get our code address range.
|
||||
if (__gR5Compatibility)
|
||||
find_own_image(id);
|
||||
}
|
||||
Reference in New Issue
Block a user