aboutsummaryrefslogtreecommitdiff
path: root/kern/pc_sample.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-01-17 23:56:04 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-19 00:55:04 +0100
commit2029728ed6d2a88350be945a892d325aebc2eb8d (patch)
tree5cdae89a531f8d10e08b39491c7c8e64cff3f9b0 /kern/pc_sample.c
parentfc6bcf785b702e7e8a675ea0fe9856cc1b24b8f6 (diff)
downloadgnumach-2029728ed6d2a88350be945a892d325aebc2eb8d.tar.gz
gnumach-2029728ed6d2a88350be945a892d325aebc2eb8d.tar.bz2
gnumach-2029728ed6d2a88350be945a892d325aebc2eb8d.zip
Include mig generated headers to avoid warnings with -Wmissing-prototypes.
This also reverts 566c227636481b246d928772ebeaacbc7c37145b and 963b1794d7117064cee8ab5638b329db51dad854 Message-Id: <Y8d75KSqNL4FFInm@mercury.tail36e24.ts.net>
Diffstat (limited to 'kern/pc_sample.c')
-rw-r--r--kern/pc_sample.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kern/pc_sample.c b/kern/pc_sample.c
index d13beb07..9ac18821 100644
--- a/kern/pc_sample.c
+++ b/kern/pc_sample.c
@@ -35,7 +35,7 @@
#include <kern/host.h>
#include <kern/thread.h>
#include <kern/pc_sample.h>
-#include <kern/mach4.h>
+#include <kern/mach4.server.h>
#include <kern/mach_clock.h>
#if MACH_PCSAMPLE
@@ -159,7 +159,7 @@ get_sampled_pcs(
sample_control_t *cp,
sampled_pc_seqno_t *seqnop,
sampled_pc_array_t sampled_pcs_out,
- int *sampled_pcs_cntp)
+ mach_msg_type_number_t *sampled_pcs_cntp)
{
int nsamples;
sampled_pc_seqno_t seqidx1, seqidx2;
@@ -218,7 +218,7 @@ thread_get_sampled_pcs(
thread_t thread,
sampled_pc_seqno_t *seqnop,
sampled_pc_array_t sampled_pcs_out,
- int *sampled_pcs_cntp)
+ mach_msg_type_number_t *sampled_pcs_cntp)
{
if (thread == THREAD_NULL)
return KERN_INVALID_ARGUMENT;
@@ -235,7 +235,7 @@ task_get_sampled_pcs(
task_t task,
sampled_pc_seqno_t *seqnop,
sampled_pc_array_t sampled_pcs_out,
- int *sampled_pcs_cntp)
+ mach_msg_type_number_t *sampled_pcs_cntp)
{
if (task == TASK_NULL)
return KERN_INVALID_ARGUMENT;