diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-11-03 10:24:47 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-11-03 10:53:38 +0100 |
commit | ba4346f0890250e6d6daa15ede5a3709ac61a472 (patch) | |
tree | 9ee5d85263979123e2495fa2e069bdcf3e02d8de /include | |
parent | 401865d725a4103fd4a3b80fac65943e9e334fca (diff) | |
download | libssh-ba4346f0890250e6d6daa15ede5a3709ac61a472.tar.gz libssh-ba4346f0890250e6d6daa15ede5a3709ac61a472.tar.xz libssh-ba4346f0890250e6d6daa15ede5a3709ac61a472.zip |
priv: Fix brackets of burn macros.
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/priv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index f5832205..21f07463 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -253,7 +253,7 @@ int match_hostname(const char *host, const char *pattern, unsigned int len); /** Overwrite the buffer with '\0' */ # define BURN_BUFFER(x, size) do { \ if ((x) != NULL) \ - memset((x), '\0', (size))); __asm__ volatile("" : : "r"(&(x)) : "memory"); \ + memset((x), '\0', (size)); __asm__ volatile("" : : "r"(&(x)) : "memory"); \ } while(0) #else /* HAVE_GCC_VOLATILE_MEMORY_PROTECTION */ /** Overwrite a string with '\0' */ @@ -264,7 +264,7 @@ int match_hostname(const char *host, const char *pattern, unsigned int len); /** Overwrite the buffer with '\0' */ # define BURN_BUFFER(x, size) do { \ if ((x) != NULL) \ - memset((x), '\0', (size))); __asm__ volatile("" : : "r"(&(x)) : "memory"); \ + memset((x), '\0', (size)); __asm__ volatile("" : : "r"(&(x)) : "memory"); \ } while(0) #endif /* HAVE_GCC_VOLATILE_MEMORY_PROTECTION */ |