* 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:
parent
6f451e5ec4
commit
f8a8bc2ce4
5 changed files with 27 additions and 20 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue