summaryrefslogtreecommitdiff
path: root/refer/refer5.c
diff options
context:
space:
mode:
Diffstat (limited to 'refer/refer5.c')
-rw-r--r--refer/refer5.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/refer/refer5.c b/refer/refer5.c
index ee9ea3f4b771..b2b5497d92b1 100644
--- a/refer/refer5.c
+++ b/refer/refer5.c
@@ -109,9 +109,9 @@ putsig (int nf, char **flds, int nref, char *nstline,
else
snprintf(t, sizeof(t), "%d", nref);
}
- another = (sd = lookat()) ? prefix(".[", sd) : 0;
+ another = (sd = lookat()) ? prefix(sd, ".[") : 0;
if (another && (strcmp(".[\n", sd) != SAME))
- fprintf(stderr, (char *)"File %s line %d: punctuation ignored from: %s",
+ fprintf(stderr, "File %s line %d: punctuation ignored from: %s",
Ifile, Iline, sd);
if ((strlen(sig) + strlen(t)) > MXSIG)
err("sig overflow (%d)", MXSIG);
@@ -196,7 +196,7 @@ putsig (int nf, char **flds, int nref, char *nstline,
}
char *
-fpar (int nf, char **flds, char *out, size_t outsiz, int c, int seq,
+fpar (int nf, char **flds, char *out, size_t outsiz __unused, int c, int seq,
int prepend)
{
char *p, *s;
@@ -207,11 +207,11 @@ fpar (int nf, char **flds, char *out, size_t outsiz, int c, int seq,
/* for titles use first word otherwise last */
if (c == 'T' || c == 'J') {
p = flds[i]+3;
- if (prefix("A ", p))
+ if (prefix(p, "A "))
p += 2;
- if (prefix("An ", p))
+ if (prefix(p, "An "))
p += 3;
- if (prefix("The ", p))
+ if (prefix(p, "The "))
p += 4;
mycpy2(out, p, 20);
return(out);
@@ -240,7 +240,7 @@ fpar (int nf, char **flds, char *out, size_t outsiz, int c, int seq,
}
void
-putkey(int nf, char **flds, int nref, char *keystr)
+putkey(int nf, char **flds, int nref, const char *_keystr)
{
char t1[50], *sf;
int ctype, i, count;
@@ -249,9 +249,9 @@ putkey(int nf, char **flds, int nref, char *keystr)
if (nf <= 0)
fprintf(fo, "%s%c%c", labtab[nref], labc[nref], sep);
else {
- while ((ctype = *keystr++)) {
- count = atoi(keystr);
- if (*keystr=='+')
+ while ((ctype = *_keystr++)) {
+ count = atoi(_keystr);
+ if (*_keystr=='+')
count=999;
if (count <= 0)
count = 1;