diff options
| author | Peter Eisentraut | 2011-07-26 19:54:29 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2011-07-26 19:54:29 +0000 |
| commit | ce8d7bb6440710058503d213b2aafcdf56a5b481 (patch) | |
| tree | 89f98db82e38e58891211ec7d818fd158aab9f8e /src/interfaces | |
| parent | 8c18f3f0e15738633231b31d8937b2710b38975f (diff) | |
Replace printf format %i by %d
They are identical, but the overwhelming majority of the code uses %d,
so standardize on that.
Diffstat (limited to 'src/interfaces')
| -rw-r--r-- | src/interfaces/libpq/fe-connect.c | 2 | ||||
| -rw-r--r-- | src/interfaces/libpq/win32.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 9e4807e8a96..35235821453 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -2355,7 +2355,7 @@ keep_going: /* We will come back to here until there is if (!conn->ginbuf.value) { printfPQExpBuffer(&conn->errorMessage, - libpq_gettext("out of memory allocating GSSAPI buffer (%i)"), + libpq_gettext("out of memory allocating GSSAPI buffer (%d)"), llen); goto error_return; } diff --git a/src/interfaces/libpq/win32.c b/src/interfaces/libpq/win32.c index d77fc48b5eb..20dfec912ef 100644 --- a/src/interfaces/libpq/win32.c +++ b/src/interfaces/libpq/win32.c @@ -319,14 +319,14 @@ winsock_strerror(int err, char *strerrbuf, size_t buflen) } if (!success) - sprintf(strerrbuf, libpq_gettext("Unknown socket error (0x%08X/%i)"), err, err); + sprintf(strerrbuf, libpq_gettext("Unknown socket error (0x%08X/%d)"), err, err); else { strerrbuf[buflen - 1] = '\0'; offs = strlen(strerrbuf); if (offs > (int) buflen - 64) offs = buflen - 64; - sprintf(strerrbuf + offs, " (0x%08X/%i)", err, err); + sprintf(strerrbuf + offs, " (0x%08X/%d)", err, err); } return strerrbuf; } |
