summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2014-05-13 09:12:54 -0700
committerKenny Root <kroot@google.com>2014-05-13 09:12:54 -0700
commit1bd41b13998b2d56359f64247695db355c48f4c6 (patch)
tree6a8ec4174d0a40732a9c7b9786d66f0e4ed6341e
parent09b84870d51c827cafac6220826bf497b1c622c4 (diff)
downloadsystem_core-1bd41b13998b2d56359f64247695db355c48f4c6.zip
system_core-1bd41b13998b2d56359f64247695db355c48f4c6.tar.gz
system_core-1bd41b13998b2d56359f64247695db355c48f4c6.tar.bz2
adb: avoid compilation errors for unused results
The BIO_CTRL_FLUSH function for files doesn't return anything useful from the underlying fflush call, so it is safe to ignore this. Change-Id: If33a7efbbaaf158e3da1cd72d0a56da1d3b82fd9
-rw-r--r--adb/adb_auth_host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/adb/adb_auth_host.c b/adb/adb_auth_host.c
index 9039d42..783774a 100644
--- a/adb/adb_auth_host.c
+++ b/adb/adb_auth_host.c
@@ -159,13 +159,13 @@ static int write_public_keyfile(RSA *private_key, const char *private_key_path)
bio = BIO_push(b64, bfile);
BIO_write(bio, &pkey, sizeof(pkey));
- BIO_flush(bio);
+ (void) BIO_flush(bio);
BIO_pop(b64);
BIO_free(b64);
get_user_info(info, sizeof(info));
BIO_write(bfile, info, strlen(info));
- BIO_flush(bfile);
+ (void) BIO_flush(bfile);
BIO_free_all(bfile);
return 1;