From 292e3c830032a4634f04c3095d6bfa272b65d712 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 21 Jan 2012 13:17:48 -0600 Subject: Fix a number of build warnings --- libtdenetwork/gpgmepp/callbacks.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libtdenetwork') 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; } -- cgit v1.2.1