diff options
author | Neil Conway <neilc@samurai.com> | 2007-01-26 17:45:42 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2007-01-26 17:45:42 +0000 |
commit | 8ff2bccee31a7be12f653bc533b3e76c052534f8 (patch) | |
tree | f56dcf47c08037f04974372492ce5a660d303472 /src/timezone/ialloc.c | |
parent | 8924c568202122075ae666e8815bc2960496754c (diff) | |
download | postgresql-8ff2bccee31a7be12f653bc533b3e76c052534f8.tar.gz postgresql-8ff2bccee31a7be12f653bc533b3e76c052534f8.zip |
Squelch some VC++ compiler warnings. Mark float literals with the "f"
suffix, to distinguish them from doubles. Make some function declarations
and definitions use the "const" qualifier for arguments consistently.
Ignore warning 4102 ("unreferenced label"), because such warnings
are always emitted by bison-generated code. Patch from Magnus Hagander.
Diffstat (limited to 'src/timezone/ialloc.c')
-rw-r--r-- | src/timezone/ialloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timezone/ialloc.c b/src/timezone/ialloc.c index 547a786e34d..2b4dc17b3bd 100644 --- a/src/timezone/ialloc.c +++ b/src/timezone/ialloc.c @@ -3,7 +3,7 @@ * 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov). * * IDENTIFICATION - * $PostgreSQL: pgsql/src/timezone/ialloc.c,v 1.7 2005/10/15 02:49:51 momjian Exp $ + * $PostgreSQL: pgsql/src/timezone/ialloc.c,v 1.8 2007/01/26 17:45:42 neilc Exp $ */ #include "postgres.h" @@ -14,7 +14,7 @@ #define nonzero(n) (((n) == 0) ? 1 : (n)) char * -imalloc(const int n) +imalloc(int n) { return malloc((size_t) nonzero(n)); } @@ -28,7 +28,7 @@ icalloc(int nelem, int elsize) } void * -irealloc(void *pointer, const int size) +irealloc(void *pointer, int size) { if (pointer == NULL) return imalloc(size); |