1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fixed argument type for integer_to_cpuset

This commit is contained in:
Steffen Vogel 2016-06-13 17:17:23 +02:00
parent f3951afd18
commit f635bf115a
2 changed files with 3 additions and 2 deletions

View file

@ -11,6 +11,7 @@
#define _UTILS_H_
#include <stdlib.h>
#include <stdint.h>
#include <sched.h>
#include <assert.h>
@ -121,7 +122,7 @@ int strftimespec(char *s, size_t max, const char *format, struct timespec *ts)
* @param set A cpu bitmask
* @return The opaque cpu_set_t datatype
*/
cpu_set_t integer_to_cpuset(int set);
cpu_set_t integer_to_cpuset(uintmax_t set);
#ifdef WITH_JANSSON
#include <jansson.h>

View file

@ -132,7 +132,7 @@ char * vstrcatf(char **dest, const char *fmt, va_list ap)
return *dest;
}
cpu_set_t integer_to_cpuset(int set)
cpu_set_t integer_to_cpuset(uintmax_t set)
{
cpu_set_t cset;