[PATCH] Fix var declaration according scanf specification,

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема [PATCH] Fix var declaration according scanf specification,
Дата
Msg-id MN2PR18MB292728135700705C5F06FE1BE34B0@MN2PR18MB2927.namprd18.prod.outlook.com
обсуждение исходный текст
Список pgsql-hackers
Hi,
According to specification of scanf: %x argument must be unsigned.
http://www.cplusplus.com/reference/cstdio/scanf/
I think that sscanf must follow scanf specification.

Best regards.
Ranier Vilela

--- \dll\postgresql\a\backend\utils\adt\mac.c    2019-11-23 13:19:20.000000000 -0300
+++ mac.c    2019-11-24 09:49:01.737639100 -0300
@@ -57,7 +57,7 @@
 {
     char       *str = PG_GETARG_CSTRING(0);
     macaddr    *result;
-    int            a,
+    unsigned int a,
                 b,
                 c,
                 d,

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] WAL logging problem in 9.4.3?
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: LISTEN/NOTIFY testing woes