about summary refs log tree commit diff
path: root/manual
diff options
context:
space:
mode:
Diffstat (limited to 'manual')
-rw-r--r--manual/Makefile8
-rw-r--r--manual/string.texi2
2 files changed, 3 insertions, 7 deletions
diff --git a/manual/Makefile b/manual/Makefile
index fafa7e77d9..c99f4974a8 100644
--- a/manual/Makefile
+++ b/manual/Makefile
@@ -67,12 +67,8 @@ stamp-summary: summary.awk $(chapters) $(chapters-incl)
 # access to the documentation of the function, variables, and other
 # definitions.
 dir-add.texi: xtract-typefun.awk $(chapters)
-	if test -n "$(chapters)"; then \
-	  (for i in $(chapters); do \
-	     $(GAWK) -f $< < $$i; \
-	   done) | sort > $@.new; \
-	   ./move-if-change $@.new $@; \
-	fi
+	$(GAWK) -f $^ | sort > $@.new;
+	mv -f $@.new $@
 
 # Generate Texinfo files from the C source for the example programs.
 %.c.texi: examples/%.c
diff --git a/manual/string.texi b/manual/string.texi
index efcc23e59a..9d242b7c19 100644
--- a/manual/string.texi
+++ b/manual/string.texi
@@ -881,7 +881,7 @@ strstr ("hello, world", "wo")
 
 @comment string.h
 @comment GNU
-@deftypefun {void *} memmem (const void *@var{needle}, size_t @var{needle-len},@*const void *@var{haystack}, size_t @var{haystack-len})
+@deftypefun {void *} memmem (const void *@var{haystack}, size_t @var{haystack-len},@*const void *@var{needle}, size_t @var{needle-len})
 This is like @code{strstr}, but @var{needle} and @var{haystack} are byte
 arrays rather than null-terminated strings.  @var{needle-len} is the
 length of @var{needle} and @var{haystack-len} is the length of