projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the test for sasl.h to look in the correct place.
[mmh]
/
sbr
/
print_sw.c
diff --git
a/sbr/print_sw.c
b/sbr/print_sw.c
index
426724b
..
bd7b5aa
100644
(file)
--- a/
sbr/print_sw.c
+++ b/
sbr/print_sw.c
@@
-13,7
+13,7
@@
void
void
-print_sw (char *substr, struct swit *swp, char *prefix)
+print_sw (char *substr, struct swit *swp, char *prefix, FILE *fp)
{
int len, optno;
register int i;
{
int len, optno;
register int i;
@@
-45,10
+45,11
@@
print_sw (char *substr, struct swit *swp, char *prefix)
*cp++ = *cp1++;
*cp++ = ')';
while ((*cp++ = *cp1++));
*cp++ = *cp1++;
*cp++ = ')';
while ((*cp++ = *cp1++));
- printf (" %s%s\n", prefix, buf);
+ fprintf (fp, " %s%s\n", prefix, buf);
} else {
if (!swp->minchars)
} else {
if (!swp->minchars)
- printf(optno ? " %s[no]%s\n" : " %s%s\n", prefix, swp->sw);
+ fprintf(fp, optno ? " %s[no]%s\n" : " %s%s\n",
+ prefix, swp->sw);
}
if (optno)
swp++; /* skip -noswitch */
}
if (optno)
swp++; /* skip -noswitch */