1
0
Fork 0

Added a const in a couple places to get rid of annoying compiler warnings.

This commit is contained in:
curt 1998-12-07 21:08:01 +00:00
parent 3e05a5780d
commit f472bc563d
2 changed files with 14 additions and 8 deletions

View file

@ -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!
*

View file

@ -54,7 +54,7 @@ typedef struct {
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);
/* Parse a unique scenery tile index and find the lon, lat, x, and y */
@ -62,7 +62,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);
/* offset an bucket struct by the specified amounts in the X & Y direction */
@ -87,9 +87,12 @@ void fgBucketGenIdxArray(fgBUCKET *p1, fgBUCKET *tiles, int width, int height);
/* $Log$
/* Revision 1.2 1998/07/04 00:46:48 curt
/* typedef'd struct fgBUCKET.
/* Revision 1.3 1998/12/07 21:08:03 curt
/* Added a const in a couple places to get rid of annoying compiler warnings.
/*
* Revision 1.2 1998/07/04 00:46:48 curt
* typedef'd struct fgBUCKET.
*
* Revision 1.1 1998/04/08 23:28:59 curt
* Adopted Gnu automake/autoconf system.
*