From 4c284c9141c52ed9de90798cc39982be09b8b60c Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Wed, 26 Mar 2014 15:33:05 +0100
Subject: [PATCH] Removed LCOV directives from code
---
library/ctr_drbg.c | 8 ++++----
library/hmac_drbg.c | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/library/ctr_drbg.c b/library/ctr_drbg.c
index 3cb63415e..402780909 100644
--- a/library/ctr_drbg.c
+++ b/library/ctr_drbg.c
@@ -368,8 +368,8 @@ int ctr_drbg_write_seed_file( ctr_drbg_context *ctx, const char *path )
if( fwrite( buf, 1, CTR_DRBG_MAX_INPUT, f ) != CTR_DRBG_MAX_INPUT )
{
- ret = POLARSSL_ERR_CTR_DRBG_FILE_IO_ERROR; /* LCOV_EXCL_LINE */
- goto exit; /* LCOV_EXCL_LINE */
+ ret = POLARSSL_ERR_CTR_DRBG_FILE_IO_ERROR;
+ goto exit;
}
ret = 0;
@@ -400,8 +400,8 @@ int ctr_drbg_update_seed_file( ctr_drbg_context *ctx, const char *path )
if( fread( buf, 1, n, f ) != n )
{
- fclose( f ); /* LCOV_EXCL_LINE */
- return( POLARSSL_ERR_CTR_DRBG_FILE_IO_ERROR ); /* LCOV_EXCL_LINE */
+ fclose( f );
+ return( POLARSSL_ERR_CTR_DRBG_FILE_IO_ERROR );
}
fclose( f );
diff --git a/library/hmac_drbg.c b/library/hmac_drbg.c
index c05717b9a..baef526b1 100644
--- a/library/hmac_drbg.c
+++ b/library/hmac_drbg.c
@@ -319,8 +319,8 @@ int hmac_drbg_write_seed_file( hmac_drbg_context *ctx, const char *path )
if( fwrite( buf, 1, sizeof( buf ), f ) != sizeof( buf ) )
{
- ret = POLARSSL_ERR_HMAC_DRBG_FILE_IO_ERROR; /* LCOV_EXCL_LINE */
- goto exit; /* LCOV_EXCL_LINE */
+ ret = POLARSSL_ERR_HMAC_DRBG_FILE_IO_ERROR;
+ goto exit;
}
ret = 0;
@@ -351,8 +351,8 @@ int hmac_drbg_update_seed_file( hmac_drbg_context *ctx, const char *path )
if( fread( buf, 1, n, f ) != n )
{
- fclose( f ); /* LCOV_EXCL_LINE */
- return( POLARSSL_ERR_HMAC_DRBG_FILE_IO_ERROR ); /* LCOV_EXCL_LINE */
+ fclose( f );
+ return( POLARSSL_ERR_HMAC_DRBG_FILE_IO_ERROR );
}
fclose( f );