projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add pty module for forkpty and openpty.
[gnulib.git]
/
tests
/
test-getgroups.c
diff --git
a/tests/test-getgroups.c
b/tests/test-getgroups.c
index
ffa873f
..
aed80f1
100644
(file)
--- a/
tests/test-getgroups.c
+++ b/
tests/test-getgroups.c
@@
-23,6
+23,7
@@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#define ASSERT(expr) \
do \
#define ASSERT(expr) \
do \
@@
-51,7
+52,7
@@
main (int argc, char **argv _UNUSED_PARAMETER_)
}
ASSERT (0 <= result);
ASSERT (result + 1 < SIZE_MAX / sizeof *groups);
}
ASSERT (0 <= result);
ASSERT (result + 1 < SIZE_MAX / sizeof *groups);
- groups = malloc (
result + 1
* sizeof *groups);
+ groups = malloc (
(result + 1)
* sizeof *groups);
ASSERT (groups);
groups[result] = -1;
/* Check for EINVAL handling. Not all processes have supplemental
ASSERT (groups);
groups[result] = -1;
/* Check for EINVAL handling. Not all processes have supplemental