X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=Bucket%2Fbucketutils.c;h=72ab108c18d064cba2db32a02c5bb68f59d91c96;hb=f472bc563d42656e4c89444c48116c89122a3e96;hp=0645fd69d3f6b540618c89d03d4b87741da88fd5;hpb=4205c0a38db86c0721f8574dd7007fe49cfde968;p=simgear.git diff --git a/Bucket/bucketutils.c b/Bucket/bucketutils.c index 0645fd69..72ab108c 100644 --- a/Bucket/bucketutils.c +++ b/Bucket/bucketutils.c @@ -45,7 +45,7 @@ 3 bits - to represent x (0 to 7) 3 bits - to represent y (0 to 7) */ -long int fgBucketGenIndex(fgBUCKET *p) { +long int fgBucketGenIndex( const fgBUCKET *p) { long index = 0; index = ((p->lon + 180) << 14) + ((p->lat + 90) << 6) + (p->y << 3) + p->x; @@ -73,7 +73,7 @@ void fgBucketParseIndex(long int index, fgBUCKET *p) { /* Build a path name from an tile index */ -void fgBucketGenBasePath(fgBUCKET *p, char *path) { +void fgBucketGenBasePath( const fgBUCKET *p, char *path) { long int index; int top_lon, top_lat, main_lon, main_lat; char hem, pole; @@ -267,9 +267,12 @@ int main() { /* $Log$ -/* Revision 1.3 1998/07/04 00:46:47 curt -/* typedef'd struct fgBUCKET. +/* Revision 1.4 1998/12/07 21:08:01 curt +/* Added a const in a couple places to get rid of annoying compiler warnings. /* + * Revision 1.3 1998/07/04 00:46:47 curt + * typedef'd struct fgBUCKET. + * * Revision 1.2 1998/04/25 22:06:22 curt * Edited cvs log messages in source files ... bad bad bad! *