remove unnecessary explicit type conversion (to char) for appendStringInfoChar function calls

Поиск
Список
Период
Сортировка
От Mahendra Singh Thalor
Тема remove unnecessary explicit type conversion (to char) for appendStringInfoChar function calls
Дата
Msg-id CAKYtNAraFpkJj7SxxAEpmnUMx464cXYGJbf=ovj7bqzz3+gMQw@mail.gmail.com
обсуждение исходный текст
Ответы Re: remove unnecessary explicit type conversion (to char) for appendStringInfoChar function calls
Список pgsql-hackers
Hi,
In the current master code, 3 places we are using appendStringInfoChar
call with explicit type conversion into char. This is not needed as
all other places, we are using direct character to append.

--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -302,7 +302,7 @@ InteractiveBackend(StringInfo inBuf)
         */

        /* Add '\0' to make it look the same as message case. */
-       appendStringInfoChar(inBuf, (char) '\0');
+       appendStringInfoChar(inBuf, '\0');

Here, I am attaching a small patch to fix these 3 type conversions on head.

-- 
Thanks and Regards
Mahendra Singh Thalor
EnterpriseDB: http://www.enterprisedb.com

Вложения

В списке pgsql-hackers по дате отправления: