X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_config_cores.h;h=d45f848092f5d5ef88c699494fbbe0230d4b0223;hb=733fc645b6389d1f42aef8f1c1631f1db7d58196;hp=c1b92d0a7ac989286d1768f48ae8437eed4ffe2f;hpb=c0f6e19a1a154f31ce085d0010c164cdef5fbe18;p=collectd.git diff --git a/src/utils_config_cores.h b/src/utils_config_cores.h index c1b92d0a..d45f8480 100644 --- a/src/utils_config_cores.h +++ b/src/utils_config_cores.h @@ -1,7 +1,7 @@ /** * collectd - src/utils_config_cores.h * - * Copyright(c) 2017 Intel Corporation. All rights reserved. + * Copyright(c) 2018 Intel Corporation. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -28,9 +28,15 @@ #ifndef UTILS_CONFIG_CORES_H #define UTILS_CONFIG_CORES_H 1 +#include "configfile.h" + +#ifndef PRIsz +#define PRIsz "zu" +#endif /* PRIsz */ + struct core_group_s { char *desc; - unsigned *cores; + unsigned int *cores; size_t num_cores; }; typedef struct core_group_s core_group_t;