summaryrefslogtreecommitdiff
path: root/src/ptx.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-08-12 08:18:18 +0000
committerJim Meyering <jim@meyering.net>2005-08-12 08:18:18 +0000
commit501d8ffe81549ad4a5f5eb5dfad4ca39939218ab (patch)
treedb2d4f4a18cdab801b72370c5fb78f4c59916773 /src/ptx.c
parent585c8e075ba4f2166320f861f4647da0ad02ce5b (diff)
downloadcoreutils-501d8ffe81549ad4a5f5eb5dfad4ca39939218ab.tar.xz
(sort_found_occurs, digest_word_file): Likewise.
(alloc_and_compile_regex): Likewise.
Diffstat (limited to 'src/ptx.c')
-rw-r--r--src/ptx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ptx.c b/src/ptx.c
index a01175ded..066beb7ab 100644
--- a/src/ptx.c
+++ b/src/ptx.c
@@ -398,7 +398,7 @@ alloc_and_compile_regex (const char *string)
const char *message; /* error message returned by regex.c */
pattern = xmalloc (sizeof *pattern);
- memset (pattern, 0, sizeof (struct re_pattern_buffer));
+ memset (pattern, 0, sizeof *pattern);
pattern->buffer = NULL;
pattern->allocated = 0;
@@ -698,7 +698,7 @@ sort_found_occurs (void)
/* Only one language for the time being. */
- qsort (occurs_table[0], number_of_occurs[0], sizeof (OCCURS),
+ qsort (occurs_table[0], number_of_occurs[0], sizeof **occurs_table,
compare_occurs);
}
@@ -801,7 +801,7 @@ digest_word_file (const char *file_name, WORD_TABLE *table)
/* Finally, sort all the words read. */
- qsort (table->start, table->length, (size_t) sizeof (WORD), compare_words);
+ qsort (table->start, table->length, sizeof table->start[0], compare_words);
}
/* Keyword recognition and selection. */