chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test-hashmap: fix gcc5 warning
[elogind.git]
/
src
/
test
/
test-namespace.c
diff --git
a/src/test/test-namespace.c
b/src/test/test-namespace.c
index 5b76b9e73ffddaaafe2f3a4f9dc6a4db885a838b..2397db5fffe40afaa1afe142763c72b90101b0b5 100644
(file)
--- a/
src/test/test-namespace.c
+++ b/
src/test/test-namespace.c
@@
-19,7
+19,6
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <libgen.h>
#include <sys/socket.h>
#include "namespace.h"
#include <sys/socket.h>
#include "namespace.h"
@@
-43,8
+42,8
@@
static void test_tmpdir(const char *id, const char *A, const char *B) {
assert_se((x.st_mode & 01777) == 0700);
assert_se((y.st_mode & 01777) == 0700);
assert_se((x.st_mode & 01777) == 0700);
assert_se((y.st_mode & 01777) == 0700);
- c = str
append
a(a, "/tmp");
- d = str
append
a(b, "/tmp");
+ c = str
join
a(a, "/tmp");
+ d = str
join
a(b, "/tmp");
assert_se(stat(c, &x) >= 0);
assert_se(stat(d, &y) >= 0);
assert_se(stat(c, &x) >= 0);
assert_se(stat(d, &y) >= 0);
@@
-63,7
+62,7
@@
static void test_tmpdir(const char *id, const char *A, const char *B) {
}
static void test_netns(void) {
}
static void test_netns(void) {
- _cleanup_close_p
ipe
_ int s[2] = { -1, -1 };
+ _cleanup_close_p
air
_ int s[2] = { -1, -1 };
pid_t pid1, pid2, pid3;
int r, n = 0;
siginfo_t si;
pid_t pid1, pid2, pid3;
int r, n = 0;
siginfo_t si;