diff options
author | Ciaran Gultnieks <ciaran@ciarang.com> | 2011-05-16 21:57:36 +0100 |
---|---|---|
committer | Ciaran Gultnieks <ciaran@ciarang.com> | 2011-05-16 21:57:36 +0100 |
commit | f1bdc6b187836f9741ac0512a0f10414002c647d (patch) | |
tree | 79fb4559186c6dc48475ea799ecdab07c773a5eb /src/porting.cpp | |
parent | 29932d4bddad6a0ad4269606e38701d544784951 (diff) | |
download | minetest-f1bdc6b187836f9741ac0512a0f10414002c647d.tar.gz minetest-f1bdc6b187836f9741ac0512a0f10414002c647d.tar.bz2 minetest-f1bdc6b187836f9741ac0512a0f10414002c647d.zip |
Get rid of ignored return value warning
Diffstat (limited to 'src/porting.cpp')
-rw-r--r-- | src/porting.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/porting.cpp b/src/porting.cpp index e8b135255..7c7ce48ea 100644 --- a/src/porting.cpp +++ b/src/porting.cpp @@ -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, '/'); |