summaryrefslogtreecommitdiff
path: root/lib-src/ebrowse.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-01-02 13:53:32 +0000
committerEli Zaretskii <eliz@gnu.org>2001-01-02 13:53:32 +0000
commit3a57e8668355d5a851dbd7a7ec2b2f55d0d30e7c (patch)
tree08288a8f6660d1c9c15596b15f2edc871695723a /lib-src/ebrowse.c
parent571512dece5a8820b7168200eef4341159140563 (diff)
downloademacs-3a57e8668355d5a851dbd7a7ec2b2f55d0d30e7c.tar.gz
(enter_namespace, main): Cast variables to shut up
compiler warnings. (yyerror): Change parameter declarations to be of type long, so that they can take pointers on 64-bit platforms.
Diffstat (limited to 'lib-src/ebrowse.c')
-rw-r--r--lib-src/ebrowse.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c
index b5a9f48946a..8ff4c3e7b49 100644
--- a/lib-src/ebrowse.c
+++ b/lib-src/ebrowse.c
@@ -528,7 +528,7 @@ int globals P_ ((int));
void
yyerror (format, a1, a2, a3, a4, a5)
char *format;
- int a1, a2, a3, a4, a5;
+ long a1, a2, a3, a4, a5;
{
fprintf (stderr, "%s:%d: ", filename, yyline);
fprintf (stderr, format, a1, a2, a3, a4, a5);
@@ -1142,7 +1142,8 @@ enter_namespace (name)
if (namespace_sp == namespace_stack_size)
{
int size = max (10, 2 * namespace_stack_size);
- namespace_stack = (struct sym **) xrealloc (namespace_stack, size);
+ namespace_stack = (struct sym **) xrealloc ((void *)namespace_stack,
+ size);
namespace_stack_size = size;
}
@@ -3623,7 +3624,7 @@ main (argc, argv)
if (n_input_files == input_filenames_size)
{
input_filenames_size = max (10, 2 * input_filenames_size);
- input_filenames = (char **) xrealloc (input_filenames,
+ input_filenames = (char **) xrealloc ((void *)input_filenames,
input_filenames_size);
}
input_filenames[n_input_files++] = xstrdup (optarg);
@@ -3695,7 +3696,7 @@ main (argc, argv)
yyout = fopen (out_filename, f_append ? "a" : "w");
if (yyout == NULL)
{
- yyerror ("cannot open output file `%s'", out_filename);
+ yyerror ("cannot open output file `%s'", (long)out_filename);
exit (1);
}
}
@@ -3723,7 +3724,7 @@ main (argc, argv)
FILE *fp = fopen (input_filenames[i], "r");
if (fp == NULL)
- yyerror ("cannot open input file `%s'", input_filenames[i]);
+ yyerror ("cannot open input file `%s'", (long)input_filenames[i]);
else
{
char *file;