From 23bccc823d434d9dcf3c12622fe260d9235baae2 Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Mon, 22 Jul 2019 10:01:50 +0900 Subject: Fix inconsistencies and typos in the tree This is numbered take 7, and addresses a set of issues with code comments, variable names and unreferenced variables. Author: Alexander Lakhin Discussion: https://postgr.es/m/dff75442-2468-f74f-568c-6006e141062f@gmail.com --- src/include/utils/formatting.h | 2 +- src/include/utils/jsonb.h | 2 +- src/include/utils/relcache.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/include/utils') diff --git a/src/include/utils/formatting.h b/src/include/utils/formatting.h index 5b275dc9850..741c5f4809f 100644 --- a/src/include/utils/formatting.h +++ b/src/include/utils/formatting.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1999-2019, PostgreSQL Global Development Group * * The PostgreSQL routines for a DateTime/int/float/numeric formatting, - * inspire with Oracle TO_CHAR() / TO_DATE() / TO_NUMBER() routines. + * inspired by the Oracle TO_CHAR() / TO_DATE() / TO_NUMBER() routines. * * Karel Zak * diff --git a/src/include/utils/jsonb.h b/src/include/utils/jsonb.h index 2fe7d32fec2..ac52b75f51d 100644 --- a/src/include/utils/jsonb.h +++ b/src/include/utils/jsonb.h @@ -367,7 +367,7 @@ extern JsonbValue *findJsonbValueFromContainer(JsonbContainer *sheader, extern JsonbValue *getIthJsonbValueFromContainer(JsonbContainer *sheader, uint32 i); extern JsonbValue *pushJsonbValue(JsonbParseState **pstate, - JsonbIteratorToken seq, JsonbValue *jbVal); + JsonbIteratorToken seq, JsonbValue *jbval); extern JsonbIterator *JsonbIteratorInit(JsonbContainer *container); extern JsonbIteratorToken JsonbIteratorNext(JsonbIterator **it, JsonbValue *val, bool skipNested); diff --git a/src/include/utils/relcache.h b/src/include/utils/relcache.h index d9c10ffcbaf..2f2ace35b05 100644 --- a/src/include/utils/relcache.h +++ b/src/include/utils/relcache.h @@ -59,7 +59,7 @@ typedef enum IndexAttrBitmapKind } IndexAttrBitmapKind; extern Bitmapset *RelationGetIndexAttrBitmap(Relation relation, - IndexAttrBitmapKind keyAttrs); + IndexAttrBitmapKind attrKind); extern void RelationGetExclusionInfo(Relation indexRelation, Oid **operators, -- cgit v1.2.3