X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pgppubring.c;h=5d97aa6174df642fe2a50f0ded5a7661e5c61bdc;hp=159a9d5dccd0d6037eb0535fbdf5fa75412f2042;hb=3d8ec820b093cfe10a3738cfc8d8fedd813a73d7;hpb=ba5e3af4ea19e1d20c80941c077039871ec84258 diff --git a/pgppubring.c b/pgppubring.c index 159a9d5..5d97aa6 100644 --- a/pgppubring.c +++ b/pgppubring.c @@ -56,8 +56,8 @@ short Umask; /* dirty hack because we need Umask in lib.c but #define FGETPOS(fp,pos) fgetpos((fp),&(pos)) #define FSETPOS(fp,pos) fsetpos((fp),&(pos)) #else -#define FGETPOS(fp,pos) pos=ftell((fp)); -#define FSETPOS(fp,pos) fseek((fp),(pos),SEEK_SET) +#define FGETPOS(fp,pos) pos=ftello((fp)); +#define FSETPOS(fp,pos) fseeko((fp),(pos),SEEK_SET) #endif @@ -579,7 +579,7 @@ static pgp_key_t pgp_parse_keyblock (FILE * fp) #ifdef HAVE_FGETPOS fpos_t pos; #else - long pos; + LOFF_T pos; #endif pgp_key_t root = NULL; @@ -730,7 +730,7 @@ static void pgpring_find_candidates (char *ringfile, const char *hints[], #ifdef HAVE_FGETPOS fpos_t pos, keypos; #else - long pos, keypos; + LOFF_T pos, keypos; #endif unsigned char *buff = NULL;