1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Get rid of ignored return value warning

This commit is contained in:
Ciaran Gultnieks 2011-05-16 21:57:36 +01:00
parent 29932d4bdd
commit f1bdc6b187

View file

@ -136,7 +136,7 @@ void initializePaths()
char buf[BUFSIZ]; char buf[BUFSIZ];
memset(buf, 0, BUFSIZ); memset(buf, 0, BUFSIZ);
// Get path to executable // Get path to executable
readlink("/proc/self/exe", buf, BUFSIZ-1); assert(readlink("/proc/self/exe", buf, BUFSIZ-1) != -1);
pathRemoveFile(buf, '/'); pathRemoveFile(buf, '/');
@ -200,7 +200,7 @@ void initializePaths()
char buf[BUFSIZ]; char buf[BUFSIZ];
memset(buf, 0, BUFSIZ); memset(buf, 0, BUFSIZ);
// Get path to executable // Get path to executable
readlink("/proc/self/exe", buf, BUFSIZ-1); assert(readlink("/proc/self/exe", buf, BUFSIZ-1) != -1);
pathRemoveFile(buf, '/'); pathRemoveFile(buf, '/');