summaryrefslogtreecommitdiffstats
path: root/usr.bin/gcore/aoutcore.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/gcore/aoutcore.c')
-rw-r--r--usr.bin/gcore/aoutcore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/gcore/aoutcore.c b/usr.bin/gcore/aoutcore.c
index dfb8718..fac3fb9 100644
--- a/usr.bin/gcore/aoutcore.c
+++ b/usr.bin/gcore/aoutcore.c
@@ -126,7 +126,7 @@ aoutident(int efd, pid_t pid, char *binfile)
errx(1, "%d: process exiting", pid);
if (ki->ki_flag & P_SYSTEM) /* Swapper or pagedaemon. */
errx(1, "%d: system process", pid);
- if (exec.a_text != ptoa(ki->ki_tsize))
+ if (exec.a_text != (unsigned long)ptoa(ki->ki_tsize))
errx(1, "The executable %s does not belong to"
" process %d!\n"
"Text segment size (in bytes): executable %ld,"
@@ -142,8 +142,8 @@ aoutident(int efd, pid_t pid, char *binfile)
* core --
* Build the core file.
*/
-void
-aoutcore(int efd, int fd, pid_t pid)
+static void
+aoutcore(int efd, int fd, pid_t pid __unused)
{
union {
struct user user;
OpenPOWER on IntegriCloud