summaryrefslogtreecommitdiff
path: root/emulators/hercules/files/patch-aa
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-06-25 05:22:11 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-06-25 05:22:11 +0000
commitc1252d8a6441358ee2c89251f27b94d21973aa31 (patch)
tree6b0735e4a9d96602019dc29c7ec146690c3e4c4a /emulators/hercules/files/patch-aa
parentremove ports/graphics/miniscrib (diff)
Merge Mark Daniel Szlaga's tape patches into the port, Fix some PORTDOCS issues.
PR: 39785 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=61903
Diffstat (limited to 'emulators/hercules/files/patch-aa')
-rw-r--r--emulators/hercules/files/patch-aa57
1 files changed, 57 insertions, 0 deletions
diff --git a/emulators/hercules/files/patch-aa b/emulators/hercules/files/patch-aa
new file mode 100644
index 000000000000..fc6217273d18
--- /dev/null
+++ b/emulators/hercules/files/patch-aa
@@ -0,0 +1,57 @@
+diff -uNr ckddasd.c
+--- ckddasd.c Tue Nov 20 17:39:46 2001
++++ ckddasd.c Tue Jan 15 22:03:48 2002
+@@ -786,7 +786,7 @@
+ {
+ /* if lazy write, write the last track image */
+ if (dev->ckdlazywrt)
+- ckd_lseek (dev, -1, -1, -1);
++ ckd_lseek (dev, -1, (off_t)-1, -1);
+
+ /* free the cache */
+ for (i = 0; i < dev->ckdcachenbr; i++)
+@@ -1240,7 +1240,7 @@
+
+ DEVTRACE("ckddasd: skipping %d bytes\n", skiplen);
+
+- rc = ckd_lseek (dev, dev->fd, skiplen, SEEK_CUR);
++ rc = ckd_lseek (dev, dev->fd, (off_t)skiplen, SEEK_CUR);
+ if (rc == -1)
+ {
+ #ifdef OPTION_SYNCIO
+@@ -1734,7 +1734,7 @@
+ ckdlen = CKDDASD_RECHDR_SIZE + keylen + datalen;
+
+ /* Determine the current position in the file */
+- curpos = ckd_lseek (dev, dev->fd, 0, SEEK_CUR);
++ curpos = ckd_lseek (dev, dev->fd, (off_t)0, SEEK_CUR);
+ if (curpos == -1)
+ {
+ #ifdef OPTION_SYNCIO
+@@ -1782,7 +1782,7 @@
+ }
+
+ /* Backspace over end of track marker */
+- rc = ckd_lseek (dev, dev->fd, -(CKDDASD_RECHDR_SIZE), SEEK_CUR);
++ rc = ckd_lseek (dev, dev->fd, -(off_t)(CKDDASD_RECHDR_SIZE), SEEK_CUR);
+ if (rc == -1)
+ {
+ #ifdef OPTION_SYNCIO
+@@ -1854,7 +1854,7 @@
+ ckdlen = CKDDASD_RECHDR_SIZE + keylen + datalen;
+
+ /* Determine the current position in the file */
+- curpos = ckd_lseek (dev, dev->fd, 0, SEEK_CUR);
++ curpos = ckd_lseek (dev, dev->fd, (off_t)0, SEEK_CUR);
+ if (curpos == -1)
+ {
+ #ifdef OPTION_SYNCIO
+@@ -1938,7 +1938,7 @@
+ }
+
+ /* Backspace over end of track marker */
+- rc = ckd_lseek (dev, dev->fd, -(CKDDASD_RECHDR_SIZE), SEEK_CUR);
++ rc = ckd_lseek (dev, dev->fd, -(off_t)(CKDDASD_RECHDR_SIZE), SEEK_CUR);
+ if (rc == -1)
+ {
+ #ifdef OPTION_SYNCIO