summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-07-22 14:48:52 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-07-22 23:53:48 +0200
commit335c8d5ac1b96c9b2a71e0f9b46a4446aded7396 (patch)
treeaf7d92ad22f05f74b154b1b6b2c9e58670dbee44
parentd91b8841d7a3ee08aa686852154b08a3e9eb9732 (diff)
test: correct enum misassignment
CC src/test/test_job_type-test-job-type.o ../src/test/test-job-type.c:40:25: warning: implicit conversion from enumeration type 'enum UnitType' to different enumeration type 'ServiceType' (aka 'enum ServiceType') [-Wconversion] .type = UNIT_SERVICE ^~~~~~~~~~~~
-rw-r--r--src/test/test-job-type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-job-type.c b/src/test/test-job-type.c
index a60be24090..1066374436 100644
--- a/src/test/test-job-type.c
+++ b/src/test/test-job-type.c
@@ -37,7 +37,7 @@ int main(int argc, char*argv[]) {
/* fake a unit */
static Service s = {
.meta.load_state = UNIT_LOADED,
- .type = UNIT_SERVICE
+ .type = SERVICE_SIMPLE,
};
Unit *u = UNIT(&s);