From f755119f1ab7b7b90fc14a148e0e2bb62123f80f Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 22 Apr 2014 21:16:17 +0200 Subject: [PATCH] Fix syntax-check nits. --- Makefile.am | 2 +- lib/element.c | 14 +++++++------- lib/parser_aux.c | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile.am b/Makefile.am index 50df55e..a2fc98a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -35,5 +35,5 @@ EXTRA_DIST += cfg.mk maint.mk .clcopying gnulib-update: gnulib-tool --add-import --dir=. --lib=libgnu --source-base=lib/gllib --m4-base=lib/glm4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --lgpl=2 --no-conditional-dependencies --libtool --macro-prefix=lgl --no-vc-files -dist-hook: +dist-hook: make -C doc/ compare-makefile diff --git a/lib/element.c b/lib/element.c index ddbdb99..1fd988a 100644 --- a/lib/element.c +++ b/lib/element.c @@ -622,17 +622,17 @@ asn1_write_value (asn1_node node_root, const char *name, return ASN1_MEM_ERROR; \ } else { \ if (ptr) \ - memcpy( ptr, data, data_size); \ + memcpy (ptr, data, data_size); \ } #define PUT_STR_VALUE( ptr, ptr_size, data) \ - *len = _asn1_strlen(data) + 1; \ + *len = _asn1_strlen (data) + 1; \ if (ptr_size < *len) { \ return ASN1_MEM_ERROR; \ } else { \ /* this strcpy is checked */ \ if (ptr) \ - _asn1_strcpy(ptr, data); \ + _asn1_strcpy (ptr, data); \ } #define PUT_AS_STR_VALUE( ptr, ptr_size, data, data_size) \ @@ -642,18 +642,18 @@ asn1_write_value (asn1_node node_root, const char *name, } else { \ /* this strcpy is checked */ \ if (ptr) { \ - memcpy(ptr, data, data_size); \ + memcpy (ptr, data, data_size); \ ptr[data_size] = 0; \ } \ } #define ADD_STR_VALUE( ptr, ptr_size, data) \ - *len = (int) _asn1_strlen(data) + 1; \ - if (ptr_size < (int) _asn1_strlen(ptr)+(*len)) { \ + *len = (int) _asn1_strlen (data) + 1; \ + if (ptr_size < (int) _asn1_strlen (ptr) + (*len)) { \ return ASN1_MEM_ERROR; \ } else { \ /* this strcat is checked */ \ - if (ptr) _asn1_strcat(ptr, data); \ + if (ptr) _asn1_strcat (ptr, data); \ } /** diff --git a/lib/parser_aux.c b/lib/parser_aux.c index 0824564..b5f665d 100644 --- a/lib/parser_aux.c +++ b/lib/parser_aux.c @@ -457,7 +457,7 @@ _asn1_remove_node (asn1_node node, unsigned int flags) { if (node == NULL) return; - + if (flags & ASN1_DELETE_FLAG_ZEROIZE) memset(node->value, 0, node->value_len); -- 2.7.4