And why we are on 64 bits .....
Ben Duncan
bns
Wed Jun 7 12:01:38 PDT 2006
My MVISAM is going to be 64 bit enabled for the get go.
I am, however, getting warnings:
bend at bns:mvisam -> gcc -o showstruct -D_FILE_OFFSET_BITS=64 showstruct.c
showstruct.c: In function `main':
showstruct.c:101: warning: cast to pointer from integer of different size
This is the code for that:
#define OFFSET(ptrn) ((off_t *)(512L * ptrn ))
.....
off_t FILE_PTR ;
FILE_PTR = 5L ;
printf ( "POINTER VALUE IS = %lld \n ", OFFSET ( FILE_PTR) ) ; /* LINE 101 */
What do I need to get rid of the warnings ?
Keep in mind, I am trying to use 64 bits for all my FILE pointers.
Thanks ...
--
Ben Duncan - Business Network Solutions, Inc. 336 Elton Road Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
- Hanlon's Razor
More information about the Linux-users
mailing list