summaryrefslogtreecommitdiffstats
path: root/contrib/groff/libgroff
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2000-01-12 10:26:36 +0000
committerasmodai <asmodai@FreeBSD.org>2000-01-12 10:26:36 +0000
commiteabb065743dad4fc30537ec9ba2cdd1e58cfe694 (patch)
tree36ef34783cd0fd7e52b043fd38c650558e1b4b07 /contrib/groff/libgroff
parentfaafbab598b76701a18ec5b5f029693c1288bd3a (diff)
downloadFreeBSD-src-eabb065743dad4fc30537ec9ba2cdd1e58cfe694.zip
FreeBSD-src-eabb065743dad4fc30537ec9ba2cdd1e58cfe694.tar.gz
Fix conflicts which arose during import, also add $FreeBSD$.
Diffstat (limited to 'contrib/groff/libgroff')
-rw-r--r--contrib/groff/libgroff/font.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/groff/libgroff/font.cc b/contrib/groff/libgroff/font.cc
index a90627e..e27b705 100644
--- a/contrib/groff/libgroff/font.cc
+++ b/contrib/groff/libgroff/font.cc
@@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along
with groff; see the file COPYING. If not, write to the Free Software
Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+/* $FreeBSD$ */
+
#include <stdio.h>
#include <string.h>
#include <ctype.h>
@@ -734,9 +736,9 @@ int font::load_desc()
while (t.next()) {
char *p = strtok(t.buf, WS);
int found = 0;
- int i;
- for (i = 0; !found && i < sizeof(table)/sizeof(table[0]); i++)
- if (strcmp(table[i].command, p) == 0)
+ int idx;
+ for (idx = 0; !found && idx < sizeof(table)/sizeof(table[0]); idx++)
+ if (strcmp(table[idx].command, p) == 0)
found = 1;
if (found) {
char *q = strtok(0, WS);
@@ -744,8 +746,8 @@ int font::load_desc()
t.error("missing value for command `%1'", p);
return 0;
}
- //int *ptr = &(this->*(table[i-1].ptr));
- int *ptr = table[i-1].ptr;
+ //int *ptr = &(this->*(table[idx-1].ptr));
+ int *ptr = table[idx-1].ptr;
if (sscanf(q, "%d", ptr) != 1) {
t.error("bad number `%1'", q);
return 0;
OpenPOWER on IntegriCloud