Ensure that Asterisk builds with --enable-dev-mode, even on the latest gcc

and glibc.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@160207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2008-12-02 00:25:16 +00:00
parent dfec3b69d6
commit 1653a9ef65
4 changed files with 18 additions and 6 deletions

View File

@@ -2287,7 +2287,9 @@ static int retrieve_file(char *dir, int msgnum)
}
}
}
truncate(full_fn, fdlen);
if (truncate(full_fn, fdlen) < 0) {
ast_log(LOG_WARNING, "Unable to truncate '%s': %s\n", full_fn, strerror(errno));
}
}
} else {
SQLLEN ind;