diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-21 13:17:48 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-21 13:17:48 -0600 |
commit | 292e3c830032a4634f04c3095d6bfa272b65d712 (patch) | |
tree | 37d103a34c4aebbbc76243461eb29b73152a916c /libtdenetwork | |
parent | dc69027b0e7092ad69d8e58f1ee3aff22fd4d9c6 (diff) | |
download | tdepim-292e3c830032a4634f04c3095d6bfa272b65d712.tar.gz tdepim-292e3c830032a4634f04c3095d6bfa272b65d712.zip |
Fix a number of build warnings
Diffstat (limited to 'libtdenetwork')
-rw-r--r-- | libtdenetwork/gpgmepp/callbacks.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libtdenetwork/gpgmepp/callbacks.cpp b/libtdenetwork/gpgmepp/callbacks.cpp index b352515d0..ba9c30bf0 100644 --- a/libtdenetwork/gpgmepp/callbacks.cpp +++ b/libtdenetwork/gpgmepp/callbacks.cpp @@ -83,7 +83,11 @@ gpgme_error_t passphrase_callback( void * opaque, const char * uid_hint, const c if ( passphrase && *passphrase ) wipe( passphrase, strlen( passphrase ) ); free( passphrase ); - write( fd, "\n", 1 ); + if (write( fd, "\n", 1 ) < 0) { + // An error occurred during write + // FIXME + printf("Something went wrong in libtdenetwork/gpgmepp/callbacks.cpp\n"); + } return err; } |