diff options
author | Fred Fish <fnf@specifix.com> | 1992-01-24 06:52:43 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-01-24 06:52:43 +0000 |
commit | f66f459f4364223ae5ce986e8ca623dd8a3a8c75 (patch) | |
tree | 229024e8de4eb8fe00d3bf0e0bcf1c181239775b /gdb/procfs.c | |
parent | fc1f864632af0bfb16cbe613cd537ea5d7d7a0aa (diff) | |
download | gdb-f66f459f4364223ae5ce986e8ca623dd8a3a8c75.zip gdb-f66f459f4364223ae5ce986e8ca623dd8a3a8c75.tar.gz gdb-f66f459f4364223ae5ce986e8ca623dd8a3a8c75.tar.bz2 |
Misc small fixes for problems uncovered by prototyping.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index 2483f3d..43aa46f 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -263,7 +263,7 @@ DEFUN(child_xfer_memory, (memaddr, myaddr, len, dowrite, target), char *myaddr AND int len AND int dowrite AND - struct target_ops target /* ignored */) + struct target_ops *target /* ignored */) { int nbytes = 0; @@ -376,7 +376,7 @@ NOTES */ void -DEFUN(inferior_proc_init, (int pid), +DEFUN(inferior_proc_init, (pid), int pid) { if (!open_proc_file (pid, &pi)) @@ -674,11 +674,11 @@ DEFUN(attach, (pid), prdelset (&pi.prrun.pr_fault, FLTPAGE); if (ioctl (pi.fd, PIOCSFAULT, &pi.prrun.pr_fault)) { - print_sys_errmsg ("PIOCSFAULT failed"); + print_sys_errmsg ("PIOCSFAULT failed", errno); } if (ioctl (pi.fd, PIOCSTRACE, &pi.prrun.pr_trace)) { - print_sys_errmsg ("PIOCSTRACE failed"); + print_sys_errmsg ("PIOCSTRACE failed", errno); } attach_flag = 1; return (pid); @@ -1189,8 +1189,9 @@ DEFUN(open_proc_file, (pid, pip), return (pip -> valid); } -char *mappingflags (flags) -long flags; +static char * +DEFUN (mappingflags, (flags), + long flags) { static char asciiflags[7]; |