linux-and-64bit-cleanup-20050710
[openafs.git] / src / budb / db_text.c
index 6637856..0627cc7 100644 (file)
@@ -441,7 +441,7 @@ SaveText(call, lockHandle, textType, offset, flags, charListPtr)
 
            /* now have to update the previous block's link */
            linkOffset =
-               (afs_int32) & diskBlock.h.next - (afs_int32) & diskBlock;
+               (afs_int32) ((char*)& diskBlock.h.next - (char*)& diskBlock);
            linkValue = htonl(diskBlockAddr);
 
            code =
@@ -519,7 +519,7 @@ saveTextToFile(ut, tbPtr)
 }
 
 
-#if (defined(AFS_DEC_ENV) || defined(AFS_HPUX_ENV)) || defined(AFS_NT40_ENV)
+#if (defined(AFS_HPUX_ENV)) || defined(AFS_NT40_ENV)
 
 /* mkstemp
  * entry:
@@ -544,7 +544,6 @@ mkstemp(st)
     retval = open(mktemp(st), O_RDWR | O_CREAT | O_EXCL, 0600);
 #endif
 
-  error_exit:
     return (retval);
 }
 #endif