diff options
| author | Even Rouault <even.rouault@mines-paris.org> | 2017-12-18 13:42:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-18 13:42:38 +0100 |
| commit | 5bd4aef074ed3d9041e252be53fd2810ec40a02f (patch) | |
| tree | 945f42cf3d587a7ed29b6ac7fea7b62260516514 /src/nad_init.c | |
| parent | e073e13b4d7c830d1e7144c22a1ab1c225f47a39 (diff) | |
| parent | a07501a165e6f2521c9aa13fa63fab33cf67d876 (diff) | |
| download | PROJ-5bd4aef074ed3d9041e252be53fd2810ec40a02f.tar.gz PROJ-5bd4aef074ed3d9041e252be53fd2810ec40a02f.zip | |
Merge pull request #674 from aaronpuchert/const-globals
Declare non-local variables as const where possible
Diffstat (limited to 'src/nad_init.c')
| -rw-r--r-- | src/nad_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nad_init.c b/src/nad_init.c index 99342aa5..04177a44 100644 --- a/src/nad_init.c +++ b/src/nad_init.c @@ -38,8 +38,8 @@ /* Convert the byte order of the given word(s) in place. */ /************************************************************************/ -static int byte_order_test = 1; -#define IS_LSB (((unsigned char *) (&byte_order_test))[0] == 1) +static const int byte_order_test = 1; +#define IS_LSB (((const unsigned char *) (&byte_order_test))[0] == 1) static void swap_words( void *data_in, int word_size, int word_count ) |
