diff options
author | Peter Eisentraut | 2012-02-28 10:42:08 +0000 |
---|---|---|
committer | Peter Eisentraut | 2012-02-28 10:42:08 +0000 |
commit | 973e9fb294dc05a384ecae7623923ae53cb81806 (patch) | |
tree | 8f1499cd7e9de9b63e1ccff755d36393b1eb4aa7 /src/include/c.h | |
parent | 41e3c94cac0e68257126b2d264dc5e877e892490 (diff) |
Add const qualifiers where they are accidentally cast away
This only produces warnings under -Wcast-qual, but it's more correct
and consistent in any case.
Diffstat (limited to 'src/include/c.h')
-rw-r--r-- | src/include/c.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/c.h b/src/include/c.h index 7396adbaa77..82acd14a9b4 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -478,7 +478,7 @@ typedef NameData *Name; * PointerIsValid * True iff pointer is valid. */ -#define PointerIsValid(pointer) ((void*)(pointer) != NULL) +#define PointerIsValid(pointer) ((const void*)(pointer) != NULL) /* * PointerIsAligned |