aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/nabstime.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2005-10-22 14:27:29 +0000
committerAndrew Dunstan <andrew@dunslane.net>2005-10-22 14:27:29 +0000
commit188c52497dc5027896ebd0bd306d14d2138fb5d6 (patch)
tree1c723ccbd9cb6cf154d5ae6f52f561c4af959f5f /src/backend/utils/adt/nabstime.c
parent6aad07d270ca2ba42c3083daf7bd640c272ecd4c (diff)
downloadpostgresql-188c52497dc5027896ebd0bd306d14d2138fb5d6.tar.gz
postgresql-188c52497dc5027896ebd0bd306d14d2138fb5d6.zip
minor code cleanup - replace useless struct timezone argument to
gettimeofday with NULL in a few places, making it consistent with usage elsewhere.
Diffstat (limited to 'src/backend/utils/adt/nabstime.c')
-rw-r--r--src/backend/utils/adt/nabstime.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/utils/adt/nabstime.c b/src/backend/utils/adt/nabstime.c
index 40e7522b879..63e5347c5b2 100644
--- a/src/backend/utils/adt/nabstime.c
+++ b/src/backend/utils/adt/nabstime.c
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/nabstime.c,v 1.145 2005/10/15 02:49:29 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/nabstime.c,v 1.146 2005/10/22 14:27:29 adunstan Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1584,14 +1584,13 @@ Datum
timeofday(PG_FUNCTION_ARGS)
{
struct timeval tp;
- struct timezone tpz;
char templ[128];
char buf[128];
text *result;
int len;
pg_time_t tt;
- gettimeofday(&tp, &tpz);
+ gettimeofday(&tp, NULL);
tt = (pg_time_t) tp.tv_sec;
pg_strftime(templ, sizeof(templ), "%a %b %d %H:%M:%S.%%06d %Y %Z",
pg_localtime(&tt, global_timezone));