* gdb.base/shmain.c (main): Remove printf call.

* gdb.base/sizeof.c (main): Cast return of sizeof to int.
	* gdb.base/unload.c (main): Make format of fprintf a string
	literal.  Add missing endlines to prints to stderr.
	* gdb.base/watchpoint-solib.c (open_shlib): Ditto.
This commit is contained in:
Pedro Alves 2010-02-17 22:55:40 +00:00
parent 6f451e5ec4
commit f8a8bc2ce4
5 changed files with 27 additions and 20 deletions

View file

@ -42,9 +42,9 @@ void open_shlib ()
if (!handle)
{
#ifdef __WIN32__
fprintf (stderr, "error %d occurred", GetLastError ());
fprintf (stderr, "error %d occurred\n", GetLastError ());
#else
fprintf (stderr, "%s", dlerror ());
fprintf (stderr, "%s\n", dlerror ());
#endif
exit (1);
}
@ -53,7 +53,7 @@ void open_shlib ()
if (!foo)
{
fprintf (stderr, dlerror ());
fprintf (stderr, "%s\n", dlerror ());
exit (1);
}