diff options
Diffstat (limited to 'ptx')
-rw-r--r-- | ptx/Makefile.mk | 10 | ||||
-rw-r--r-- | ptx/ptx.1.in (renamed from ptx/ptx.1) | 0 | ||||
-rw-r--r-- | ptx/ptx.c | 5 |
3 files changed, 11 insertions, 4 deletions
diff --git a/ptx/Makefile.mk b/ptx/Makefile.mk index dda3ba05f725..50ca8460c7b0 100644 --- a/ptx/Makefile.mk +++ b/ptx/Makefile.mk @@ -5,7 +5,7 @@ FLAGS = -DLIBDIR='"$(LIBDIR)"' $(EUC) -I../include .c.o: $(CC) $(_CFLAGS) $(FLAGS) -c $< -all: ptx +all: ptx ptx.1 ptx: $(OBJ) $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o ptx @@ -18,6 +18,12 @@ install: $(INSTALL) -c -m 644 eign $(ROOT)$(LIBDIR)/eign clean: - rm -f $(OBJ) ptx core log *~ + rm -f $(OBJ) ptx core log *~ ptx.1 mrproper: clean + +ptx.1: ptx.1.in + sed -e "s'/usr/5bin/sort'`which sort`'" \ + -e 's"/usr/ucblib/doctools/tmac/"$(ROOT)$(BINDIR)/"' \ + -e 's"/usr/ucblib/"$(ROOT)$(LIBDIR)/"' \ + ptx.1.in > $@ diff --git a/ptx/ptx.1 b/ptx/ptx.1.in index c5ff8679c899..c5ff8679c899 100644 --- a/ptx/ptx.1 +++ b/ptx/ptx.1.in diff --git a/ptx/ptx.c b/ptx/ptx.c index 26f1c13f73ca..be3fab2455b0 100644 --- a/ptx/ptx.c +++ b/ptx/ptx.c @@ -156,7 +156,8 @@ GETC(FILE *fp) { char mb[MB_LEN_MAX+1]; wchar_t wc; - int c, i, n; + int c, i; + size_t n; mbstate_t state; if (peekc != WEOF) { @@ -188,7 +189,7 @@ bad: if ((c = getc(fp)) == EOF) } static void -UNGETC(int c, FILE *fp) +UNGETC(int c, FILE *fp __unused) { peekc = c; } |