Trivial code style cleanup around a couple of ngettext calls.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Jun 2009 19:17:39 +0000 (19:17 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Jun 2009 19:17:39 +0000 (19:17 +0000)
src/bin/psql/describe.c
src/bin/psql/print.c

index 7e542b07095360fde7ac0f4528d7ca5fc31f92e4..5f5443139332b095a9b5ad4d8526f82eea382b41 100644 (file)
@@ -2036,7 +2036,10 @@ describeRoles(const char *pattern, bool verbose)
                        if (conns == 0)
                                appendPQExpBuffer(&buf, _("No connections"));
                        else
-                               appendPQExpBuffer(&buf, ngettext("%d connection", "%d connections", conns), conns);
+                               appendPQExpBuffer(&buf, ngettext("%d connection",
+                                                                                                "%d connections",
+                                                                                                conns),
+                                                                 conns);
                }
 
                attr[i] = pg_strdup(buf.data);
index e2315a8262f5587f144b52d5539b62bb2c8cc087..59aaa0204cc4a792be175e0b674958ca800ee694 100644 (file)
@@ -2348,7 +2348,9 @@ printQuery(const PGresult *result, const printQueryOpt *opt, FILE *fout, FILE *f
                char            default_footer[100];
 
                total_records = opt->topt.prior_records + cont.nrows;
-               snprintf(default_footer, 100, ngettext("(%lu row)", "(%lu rows)", total_records), total_records);
+               snprintf(default_footer, sizeof(default_footer),
+                                ngettext("(%lu row)", "(%lu rows)", total_records),
+                                total_records);
 
                printTableAddFooter(&cont, default_footer);
        }