diff options
author | Werner Koch <[email protected]> | 2016-04-29 09:05:24 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-04-29 09:05:24 +0000 |
commit | 64bfeafa52a5ed3fa82bdc0ce7ef0edddeef188c (patch) | |
tree | 820e0e686ef9672b4b05c1e644026840e5710b6a /g10/gpg.c | |
parent | common: Improve log_assert. (diff) | |
download | gnupg-64bfeafa52a5ed3fa82bdc0ce7ef0edddeef188c.tar.gz gnupg-64bfeafa52a5ed3fa82bdc0ce7ef0edddeef188c.zip |
gpg: Remove all assert.h and s/assert/log_assert/.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/gpg.c')
-rw-r--r-- | g10/gpg.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -26,7 +26,6 @@ #include <string.h> #include <ctype.h> #include <unistd.h> -#include <assert.h> #ifdef HAVE_STAT #include <sys/stat.h> /* for stat() */ #endif @@ -1389,7 +1388,7 @@ check_permissions (const char *path, int item) if(opt.no_perm_warn) return 0; - assert(item==0 || item==1 || item==2); + log_assert(item==0 || item==1 || item==2); /* extensions may attach a path */ if(item==2 && path[0]!=DIRSEP_C) |