[PATCH] Fix var declaration according scanf specification, - Mailing list pgsql-hackers

From Ranier Vilela
Subject [PATCH] Fix var declaration according scanf specification,
Date
Msg-id MN2PR18MB292728135700705C5F06FE1BE34B0@MN2PR18MB2927.namprd18.prod.outlook.com
Whole thread Raw
List 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,

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [HACKERS] WAL logging problem in 9.4.3?
Next
From: Martijn van Oosterhout
Date:
Subject: Re: LISTEN/NOTIFY testing woes