small fixes
authorVolker Birk <vb@pep-project.org>
Sun, 31 May 2015 15:09:19 +0200
changeset 3021d1a2e776631
parent 301 d8b44dc4b0c8
child 303 212e77ce9a71
small fixes
src/bloblist.c
src/stringpair.c
test/mime_test.cc
     1.1 --- a/src/bloblist.c	Sun May 31 13:22:22 2015 +0200
     1.2 +++ b/src/bloblist.c	Sun May 31 15:09:19 2015 +0200
     1.3 @@ -142,7 +142,7 @@
     1.4  {
     1.5      int len = 0;
     1.6  
     1.7 -    for (bloblist_t *_bl = bloblist; _bl && _bl->value; _bl = _bl->next)
     1.8 +    for (const bloblist_t *_bl = bloblist; _bl && _bl->value; _bl = _bl->next)
     1.9          len++;
    1.10  
    1.11      return len;
     2.1 --- a/src/stringpair.c	Sun May 31 13:22:22 2015 +0200
     2.2 +++ b/src/stringpair.c	Sun May 31 15:09:19 2015 +0200
     2.3 @@ -135,7 +135,7 @@
     2.4  {
     2.5      int len = 0;
     2.6  
     2.7 -    stringpair_list_t *_sl;
     2.8 +    const stringpair_list_t *_sl;
     2.9      for (_sl = stringpair_list; _sl && _sl->value; _sl = _sl->next)
    2.10          len++;
    2.11  
     3.1 --- a/test/mime_test.cc	Sun May 31 13:22:22 2015 +0200
     3.2 +++ b/test/mime_test.cc	Sun May 31 15:09:19 2015 +0200
     3.3 @@ -42,7 +42,7 @@
     3.4              cout << "filename: " << _b->filename << "\n";
     3.5              unlink(_b->filename);
     3.6              ofstream outFile3(_b->filename);
     3.7 -            outFile3.write(_b->data, _b->size);
     3.8 +            outFile3.write(_b->value, _b->size);
     3.9              outFile3.close();
    3.10          }
    3.11      }