Changeset 3497 for trunk/src

Show
Ignore:
Timestamp:
04/28/08 07:33:26 (9 months ago)
Author:
ludovic.rousseau
Message:

completely initialize the struct fmap fields

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/pkcs11/debug.c

    r3183 r3497  
    3535#define STR(x)          #x 
    3636#define __(x)           (x), #x 
    37 #define _(x)            { (x), #x } 
    38 #define ul(x)           { (x), #x, sc_pkcs11_print_ulong } 
     37#define _(x)            { (x), #x, NULL, NULL } 
     38#define ul(x)           { (x), #x, sc_pkcs11_print_ulong, NULL } 
    3939#define ulm(x)          { (x), #x, sc_pkcs11_print_ulong, map_##x } 
    40 #define b(x)            { (x), #x, sc_pkcs11_print_bool } 
    41 #define s(x)            { (x), #x, sc_pkcs11_print_string } 
     40#define b(x)            { (x), #x, sc_pkcs11_print_bool, NULL } 
     41#define s(x)            { (x), #x, sc_pkcs11_print_string, NULL } 
    4242 
    4343static void             sc_pkcs11_print_attr(const char *, unsigned int, 
     
    5959        _(CKO_DOMAIN_PARAMETERS), 
    6060 
    61         { 0 } 
     61        { 0, NULL, NULL, NULL } 
    6262}; 
    6363 
     
    6666        _(CKC_X_509_ATTR_CERT), 
    6767 
    68         { 0 } 
     68        { 0, NULL, NULL, NULL } 
    6969}; 
    7070 
     
    8686        _(CKK_AES), 
    8787 
    88         { 0 } 
     88        { 0, NULL, NULL, NULL } 
    8989}; 
    9090 
     
    151151        _(CKA_VENDOR_DEFINED), 
    152152 
    153         { 0 } 
     153        { 0, NULL, NULL, NULL } 
    154154}; 
    155155