chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fstab-generator: ignore invalid swap priority
[elogind.git]
/
src
/
test
/
test-strxcpyx.c
diff --git
a/src/test/test-strxcpyx.c
b/src/test/test-strxcpyx.c
index cb2309210fcfa6e29f2ee55012e2056197e79b7c..858a4081da84c5dd4f0d1ea0562dff74b17fff72 100644
(file)
--- a/
src/test/test-strxcpyx.c
+++ b/
src/test/test-strxcpyx.c
@@
-22,7
+22,6
@@
#include <string.h>
#include "util.h"
#include <string.h>
#include "util.h"
-#include "strv.h"
#include "strxcpyx.h"
static void test_strpcpy(void) {
#include "strxcpyx.h"
static void test_strpcpy(void) {
@@
-48,7
+47,7
@@
static void test_strpcpyf(void) {
size_t space_left;
space_left = sizeof(target);
size_t space_left;
space_left = sizeof(target);
- space_left = strpcpyf(&s, space_left, "space left: %z
d
. ", space_left);
+ space_left = strpcpyf(&s, space_left, "space left: %z
u
. ", space_left);
space_left = strpcpyf(&s, space_left, "foo%s", "bar");
assert_se(streq(target, "space left: 25. foobar"));
space_left = strpcpyf(&s, space_left, "foo%s", "bar");
assert_se(streq(target, "space left: 25. foobar"));