diff options
author | Marc G. Fournier <scrappy@hub.org> | 1998-12-14 06:50:32 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1998-12-14 06:50:32 +0000 |
commit | df1468e251df8ea14ad2a4c6904bd0135cba44e5 (patch) | |
tree | 6e9f8bcec750c78a5b6c4d52621518bf592a6bd1 /src/backend/access | |
parent | 7c3b7d27446cbe7e4d1ccf6f51caf2d38f55916c (diff) | |
download | postgresql-df1468e251df8ea14ad2a4c6904bd0135cba44e5.tar.gz postgresql-df1468e251df8ea14ad2a4c6904bd0135cba44e5.zip |
Many more cleanups...
Diffstat (limited to 'src/backend/access')
-rw-r--r-- | src/backend/access/transam/xid.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/backend/access/transam/xid.c b/src/backend/access/transam/xid.c index d33a8a8dfda..35b53b5a5a8 100644 --- a/src/backend/access/transam/xid.c +++ b/src/backend/access/transam/xid.c @@ -5,9 +5,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * - * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/transam/Attic/xid.c,v 1.19 1998/12/14 05:18:33 scrappy Exp $ + * $Id: xid.c,v 1.20 1998/12/14 06:50:17 scrappy Exp $ * * OLD COMMENTS * XXX WARNING @@ -41,13 +39,10 @@ xidin(char *representation) char * xidout(TransactionId transactionId) { -/* return(TransactionIdFormString(transactionId)); */ - char *representation; - /* maximum 32 bit unsigned integer representation takes 10 chars */ - representation = palloc(11); + char *representation = palloc(11); - sprintf(representation, "%u", transactionId); + snprintf(representation, 11, "%u", transactionId); return representation; |