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:24:47 +0100 |
commit | d2dea8dc2e801a110dc61b980f178210fb633b84 (patch) | |
tree | 8101465a11e62f6e0f102f2abb5408c2d40d209a /include/libssh/priv.h | |
parent | 6edb6bcca188e6cf6107cc490800fb006d8947a6 (diff) | |
download | libssh-d2dea8dc2e801a110dc61b980f178210fb633b84.tar.gz libssh-d2dea8dc2e801a110dc61b980f178210fb633b84.tar.xz libssh-d2dea8dc2e801a110dc61b980f178210fb633b84.zip |
priv: Fix brackets of burn macros.
Diffstat (limited to 'include/libssh/priv.h')
-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 364f8e97..66fd54fc 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -254,7 +254,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' */ @@ -265,7 +265,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 */ |