Reacted on warnings of cppcheck

This commit is contained in:
Thomas Schmitt 2011-07-11 12:41:30 +02:00
parent 17b36623a6
commit b086d53274
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
bzr branch lp:libisofs/for-libisoburn (to become libisofs-1.1.4.tar.gz)
===============================================================================
- no novelties yet
libisofs-1.1.2.tar.gz Fri Jul 08 2011 libisofs-1.1.2.tar.gz Fri Jul 08 2011
=============================================================================== ===============================================================================
* New API call iso_image_get_bootcat() * New API call iso_image_get_bootcat()

View File

@ -363,7 +363,7 @@ void write_one_dir_record(Ecma119Image *t, Ecma119Node *node, int file_id,
struct ecma119_dir_record *rec = (struct ecma119_dir_record*)buf; struct ecma119_dir_record *rec = (struct ecma119_dir_record*)buf;
IsoNode *iso; IsoNode *iso;
len_dr = 33 + len_fi + (len_fi % 2 ? 0 : 1); len_dr = 33 + len_fi + ((len_fi % 2) ? 0 : 1);
memcpy(rec->file_id, name, len_fi); memcpy(rec->file_id, name, len_fi);
@ -629,7 +629,7 @@ int write_one_dir(Ecma119Image *t, Ecma119Node *dir, Ecma119Node *parent)
for (section = 0; section < nsections; ++section) { for (section = 0; section < nsections; ++section) {
/* compute len of directory entry */ /* compute len of directory entry */
len = fi_len + 33 + (fi_len % 2 ? 0 : 1); len = fi_len + 33 + ((fi_len % 2) ? 0 : 1);
if (need_version_number(t, child)) { if (need_version_number(t, child)) {
len += 2; len += 2;
} }