Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 71ba7d9

Browse files
committed
darwin: Make first argument to dladdr scope const
It is not escaped by the function, and it is defined this way for other platforms.
1 parent a34e383 commit 71ba7d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/sys/posix/dlfcn.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ else version (Darwin)
139139
char* dlerror();
140140
void* dlopen(const scope char*, int);
141141
void* dlsym(void*, const scope char*);
142-
int dladdr(void* addr, Dl_info* info);
142+
int dladdr(scope const void* addr, Dl_info* info);
143143

144144
struct Dl_info
145145
{

0 commit comments

Comments
 (0)