diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-24 04:58:15 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-05-24 04:58:15 +0200 |
commit | d50f0d7caa79acd400e550b2ca9476d5810ba280 (patch) | |
tree | caae580fa0ec1efe952251ab095c3085862e12e3 /src/passphrase.h | |
parent | fix warnings (diff) | |
download | libpassphrase-d50f0d7caa79acd400e550b2ca9476d5810ba280.tar.gz libpassphrase-d50f0d7caa79acd400e550b2ca9476d5810ba280.tar.bz2 libpassphrase-d50f0d7caa79acd400e550b2ca9476d5810ba280.tar.xz |
add volatile to ptr in passphrase_wipe1400900338
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/passphrase.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passphrase.h b/src/passphrase.h index 0731404..10c9914 100644 --- a/src/passphrase.h +++ b/src/passphrase.h @@ -33,7 +33,7 @@ extern char* passphrase_read(void); * @param ptr The password to wipe * @param n The number of characters to wipe */ -extern void passphrase_wipe(char* ptr, size_t n) __attribute__((optimize("-O0"))); +extern void passphrase_wipe(volatile char* ptr, size_t n) __attribute__((optimize("-O0"))); /** * Disable echoing and do anything else to the terminal settnings `passphrase_read` requires |