summaryrefslogtreecommitdiffstats
path: root/kioslave
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-26 21:28:48 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-26 21:28:48 -0600
commit77f4891c222583c8deffc34732ccf325bac9e11b (patch)
tree5123890a5c34e9297b26bdfa258cbe0ab9ad25c6 /kioslave
parent81dc14e8f035d33ab1de2c01314582ed2c17ad1c (diff)
downloadtdelibs-77f4891c222583c8deffc34732ccf325bac9e11b.tar.gz
tdelibs-77f4891c222583c8deffc34732ccf325bac9e11b.zip
Fix a number of tdelibs build warnings
Diffstat (limited to 'kioslave')
-rw-r--r--kioslave/iso/kiso.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kioslave/iso/kiso.cpp b/kioslave/iso/kiso.cpp
index 47f71511d..c6faa65d2 100644
--- a/kioslave/iso/kiso.cpp
+++ b/kioslave/iso/kiso.cpp
@@ -249,7 +249,7 @@ static int mycallb(struct iso_directory_record *idr,void *udata) {
if (!special) {
if (iso->joliet) {
for (i=0;i<(isonum_711(idr->name_len)-1);i+=2) {
- TQChar ch( be2me_16(*((ushort*)&(idr->name[i]))) );
+ TQChar ch( be2me_16( idr->name[i] ) );
if (ch==';') break;
path+=ch;
}
@@ -304,14 +304,14 @@ void KIso::addBoot(struct el_torito_boot_descriptor* bootdesc) {
i=1;
be=boot.defentry;
while (be) {
- size=BootImageSize( isonum_711(((struct default_entry*) be->data)->media),
- isonum_721(((struct default_entry*) be->data)->seccount));
+ size=BootImageSize( isonum_711((reinterpret_cast<struct default_entry*>(be->data))->media),
+ isonum_721((reinterpret_cast<struct default_entry*>(be->data))->seccount));
path="Default Image";
if (i>1) path += " (" + TQString::number(i) + ")";
entry=new KIsoFile( this, path, dirent->permissions() & ~S_IFDIR,
dirent->date(), dirent->adate(), dirent->cdate(),
dirent->user(), dirent->group(), TQString::null,
- isonum_731(((struct default_entry*) be->data)->start)<<11, size<<9 );
+ isonum_731((reinterpret_cast<struct default_entry*>(be->data))->start)<<11, size<<9 );
dirent->addEntry(entry);
be=be->next;
i++;