diff options
author | Fred Fish <fnf@specifix.com> | 1992-07-04 03:22:08 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-07-04 03:22:08 +0000 |
commit | 4ed3a9ea66ca93b7dea29c5cdc23d80e77e442bb (patch) | |
tree | ab1ee3900e42f9b78e93b188f593963550e21566 /gdb/parse.c | |
parent | 4c7c6bab1f8ca0ff46795c843e887171f86731d1 (diff) | |
download | gdb-4ed3a9ea66ca93b7dea29c5cdc23d80e77e442bb.zip gdb-4ed3a9ea66ca93b7dea29c5cdc23d80e77e442bb.tar.gz gdb-4ed3a9ea66ca93b7dea29c5cdc23d80e77e442bb.tar.bz2 |
* breakpoint.c, buildsym.c, c-exp.y, coffread.c, command.c,
core.c, cplus-dem.c, dbxread.c, dwarfread.c, elfread.c, environ.c,
eval.c, findvar.c, gdbtypes.c, hppabsd-tdep.c, hppahpux-tdep.c,
i386-tdep.c, ieee-float.c, infcmd.c, inflow.c, infptrace.c,
infrun.c, m2-exp.y, mipsread.c, objfiles.c, parse.c, procfs.c,
putenv.c, remote-mm.c, remote-vx.c, solib.c, sparc-tdep.c,
sparc-xdep.c, stack.c, symfile.c, symtab.c, symtab.h, target.c,
tm-i386v.h, tm-sparc.h, utils.c, valarith.c, valops.c, valprint.c,
values.c, xcoffread.c:
Remove "(void)" casts from function calls where the return value
is ignored, in accordance with GNU coding standards.
Diffstat (limited to 'gdb/parse.c')
-rw-r--r-- | gdb/parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/parse.c b/gdb/parse.c index 48c4169..4090302 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -219,7 +219,7 @@ write_exp_string (str) xrealloc ((char *) expout, (sizeof (struct expression) + (expout_size * sizeof (union exp_element)))); } - (void) memcpy ((char *) &expout->elts[expout_ptr - lenelt], str.ptr, len); + memcpy ((char *) &expout->elts[expout_ptr - lenelt], str.ptr, len); ((char *) &expout->elts[expout_ptr - lenelt])[len] = 0; write_exp_elt_longcst ((LONGEST) len); } @@ -231,7 +231,7 @@ char * copy_name (token) struct stoken token; { - (void) memcpy (namecopy, token.ptr, token.length); + memcpy (namecopy, token.ptr, token.length); namecopy[token.length] = 0; return namecopy; } @@ -251,7 +251,7 @@ prefixify_expression (expr) temp = (struct expression *) alloca (len); /* Copy the original expression into temp. */ - (void) memcpy (temp, expr, len); + memcpy (temp, expr, len); prefixify_subexp (temp, expr, inpos, outpos); } @@ -481,7 +481,7 @@ prefixify_subexp (inexpr, outexpr, inend, outbeg) /* Copy the final operator itself, from the end of the input to the beginning of the output. */ inend -= oplen; - (void) memcpy (&outexpr->elts[outbeg], &inexpr->elts[inend], + memcpy (&outexpr->elts[outbeg], &inexpr->elts[inend], oplen * sizeof (union exp_element)); outbeg += oplen; |