mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Get rid of ignored return value warning
This commit is contained in:
parent
29932d4bdd
commit
f1bdc6b187
@ -136,7 +136,7 @@ void initializePaths()
|
||||
char buf[BUFSIZ];
|
||||
memset(buf, 0, BUFSIZ);
|
||||
// Get path to executable
|
||||
readlink("/proc/self/exe", buf, BUFSIZ-1);
|
||||
assert(readlink("/proc/self/exe", buf, BUFSIZ-1) != -1);
|
||||
|
||||
pathRemoveFile(buf, '/');
|
||||
|
||||
@ -200,7 +200,7 @@ void initializePaths()
|
||||
char buf[BUFSIZ];
|
||||
memset(buf, 0, BUFSIZ);
|
||||
// Get path to executable
|
||||
readlink("/proc/self/exe", buf, BUFSIZ-1);
|
||||
assert(readlink("/proc/self/exe", buf, BUFSIZ-1) != -1);
|
||||
|
||||
pathRemoveFile(buf, '/');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user