Fix syntax-check nits.
authorSimon Josefsson <simon@josefsson.org>
Tue, 22 Apr 2014 19:16:17 +0000 (21:16 +0200)
committerSimon Josefsson <simon@josefsson.org>
Tue, 22 Apr 2014 19:16:17 +0000 (21:16 +0200)
Makefile.am
lib/element.c
lib/parser_aux.c

index 50df55e..a2fc98a 100644 (file)
@@ -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
index ddbdb99..1fd988a 100644 (file)
@@ -622,17 +622,17 @@ asn1_write_value (asn1_node node_root, const char *name,
                return ASN1_MEM_ERROR; \
        } else { \
                if (ptr) \
-                 memcpyptr, 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); \
        }
 
 /**
index 0824564..b5f665d 100644 (file)
@@ -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);