Skip to contentSkip to conversation

osst endianness annotations

PATCH New Al Viro 1 participant 1 message Feb 9, 2007 SCSI

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 osst endianness annotations

---
 drivers/scsi/osst.c |    8 +++---
 drivers/scsi/osst.h |   68 +++++++++++++++++++++++++-------------------------
 2 files changed, 38 insertions(+), 38 deletions(-)
drivers/scsi/osst.c +4 -4
index 7d23110..bd6bbf6 100644
@@ -521,10 +521,10 @@ static void osst_init_aux(struct osst_tape * STp, int frame_type, int frame_seq_
 		break;
 	  default: ; /* probably FILL */
 	}
-	aux->filemark_cnt = ntohl(STp->filemark_cnt);
-	aux->phys_fm = ntohl(0xffffffff);
-	aux->last_mark_ppos = ntohl(STp->last_mark_ppos);
-	aux->last_mark_lbn  = ntohl(STp->last_mark_lbn);
+	aux->filemark_cnt = htonl(STp->filemark_cnt);
+	aux->phys_fm = htonl(0xffffffff);
+	aux->last_mark_ppos = htonl(STp->last_mark_ppos);
+	aux->last_mark_lbn  = htonl(STp->last_mark_lbn);
 }
 
 /*
drivers/scsi/osst.h +34 -34

138 lines not on this page · raw message

Signature · 1 line
1.5.0-rc2.GIT