diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-09-29 11:43:17 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-10-03 13:20:52 +0200 |
commit | 02b289f65bf567acb233ad01e3512a9e29b6c757 (patch) | |
tree | 8b43ee2bd1fa1811ec999555a04296ff5e2d3156 /source4/heimdal/lib/hx509/file.c | |
parent | be938ab44b6095818501b23ca8422c731e14015a (diff) | |
download | samba-02b289f65bf567acb233ad01e3512a9e29b6c757.tar.gz samba-02b289f65bf567acb233ad01e3512a9e29b6c757.tar.bz2 samba-02b289f65bf567acb233ad01e3512a9e29b6c757.zip |
heimdal - fix various warnings
- Shadowed variables
- "const" related warnings
- Parameter names which shadow function declarations
- Non-void functions which have no return value
(patch also ported upstream)
Diffstat (limited to 'source4/heimdal/lib/hx509/file.c')
-rw-r--r-- | source4/heimdal/lib/hx509/file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/heimdal/lib/hx509/file.c b/source4/heimdal/lib/hx509/file.c index ba7a23f471..674d2706ce 100644 --- a/source4/heimdal/lib/hx509/file.c +++ b/source4/heimdal/lib/hx509/file.c @@ -121,14 +121,14 @@ hx509_pem_write(hx509_context context, const char *type, int hx509_pem_add_header(hx509_pem_header **headers, - const char *header, const char *value) + const char *hdr, const char *value) { hx509_pem_header *h; h = calloc(1, sizeof(*h)); if (h == NULL) return ENOMEM; - h->header = strdup(header); + h->header = strdup(hdr); if (h->header == NULL) { free(h); return ENOMEM; @@ -164,10 +164,10 @@ hx509_pem_free_header(hx509_pem_header *headers) */ const char * -hx509_pem_find_header(const hx509_pem_header *h, const char *header) +hx509_pem_find_header(const hx509_pem_header *h, const char *hdr) { while(h) { - if (strcmp(header, h->header) == 0) + if (strcmp(hdr, h->header) == 0) return h->value; h = h->next; } |