diff options
author | Matthew Endsley <mendsley@gmail.com> | 2012-05-12 17:23:29 -0700 |
---|---|---|
committer | Matthew Endsley <mendsley@gmail.com> | 2012-05-14 01:04:24 -0700 |
commit | 9431405d008753d76d819a999c80e9c80de0424b (patch) | |
tree | d8d203f0dea999f606c6a9a3c8d95e86e9e50301 | |
parent | b1846c9eccfc5981dbb2107d4916da161f837337 (diff) | |
download | bsdiff-9431405d008753d76d819a999c80e9c80de0424b.tar.gz |
switching off_t variables to int64_t
-rw-r--r-- | bspatch.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -30,15 +30,16 @@ __FBSDID("$FreeBSD: src/usr.bin/bsdiff/bspatch/bspatch.c,v 1.1 2005/08/06 01:59: #include <bzlib.h> #include <stdlib.h> +#include <stdint.h> #include <stdio.h> #include <string.h> #include <err.h> #include <unistd.h> #include <fcntl.h> -static off_t offtin(u_char *buf) +static int64_t offtin(u_char *buf) { - off_t y; + int64_t y; y=buf[7]&0x7F; y=y*256;y+=buf[6]; @@ -64,10 +65,10 @@ int main(int argc,char * argv[]) ssize_t bzctrllen,bzdatalen; u_char header[32],buf[8]; u_char *old, *new; - off_t oldpos,newpos; - off_t ctrl[3]; - off_t lenread; - off_t i; + int64_t oldpos,newpos; + int64_t ctrl[3]; + int64_t lenread; + int64_t i; if(argc!=4) errx(1,"usage: %s oldfile newfile patchfile\n",argv[0]); |