aboutsummaryrefslogtreecommitdiffstats
path: root/databases/gnats/files
diff options
context:
space:
mode:
authorceri <ceri@FreeBSD.org>2004-11-16 03:56:16 +0800
committerceri <ceri@FreeBSD.org>2004-11-16 03:56:16 +0800
commit2c2849f0219366dae5ef66fa4f5b9b52916204ac (patch)
tree46257814bac5ffc0b5ea06d49a21b665b114ad2e /databases/gnats/files
parent6c031d7d180eba87af3ee938bd56d171e524d309 (diff)
downloadfreebsd-ports-gnome-2c2849f0219366dae5ef66fa4f5b9b52916204ac.tar.gz
freebsd-ports-gnome-2c2849f0219366dae5ef66fa4f5b9b52916204ac.tar.zst
freebsd-ports-gnome-2c2849f0219366dae5ef66fa4f5b9b52916204ac.zip
Expand width of the Responsible field for the output from "query-pr -i".
PR: ports/52303 Submitted by: linimon
Diffstat (limited to 'databases/gnats/files')
-rw-r--r--databases/gnats/files/patch-gnats::query.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/databases/gnats/files/patch-gnats::query.c b/databases/gnats/files/patch-gnats::query.c
new file mode 100644
index 000000000000..07f24ebcd681
--- /dev/null
+++ b/databases/gnats/files/patch-gnats::query.c
@@ -0,0 +1,25 @@
+--- gnats/query.c.dist Wed Nov 25 08:15:19 1998
++++ gnats/query.c Thu May 15 18:15:59 2003
+@@ -488,7 +488,7 @@
+
+ if (query_format & FORMAT_SQL)
+ {
+- char *t, *q, *tempstr;
++ char *t, *q, *tempstr, *fmtstring;
+
+ tempstr = (char *) xmalloc (strlen (i->synopsis) + 1);
+ strcpy (tempstr, i->synopsis);
+@@ -503,7 +503,12 @@
+ if (q != NULL)
+ *q = '\0';
+
+- fprintf (outfile, "%1.1d|%1.1d|%-16.16s|%1.1d|%1.1d|%-16.16s|",
++#ifdef USE_WIDE_RESPONSIBLE
++ fmtstring = "%1.1d|%1.1d|%-20.20s|%1.1d|%1.1d|%-16.16s|";
++#else
++ fmtstring = "%1.1d|%1.1d|%-16.16s|%1.1d|%1.1d|%-16.16s|";
++#endif
++ fprintf (outfile, fmtstring,
+ sql_types (i->severity, Severity), sql_types (i->priority, Priority),
+ tempstr,
+ sql_types (i->state, State), sql_types (i->class, Class),