diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-07-22 14:48:52 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-07-22 23:53:48 +0200 |
commit | 335c8d5ac1b96c9b2a71e0f9b46a4446aded7396 (patch) | |
tree | af7d92ad22f05f74b154b1b6b2c9e58670dbee44 /src | |
parent | d91b8841d7a3ee08aa686852154b08a3e9eb9732 (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
^~~~~~~~~~~~
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test-job-type.c | 2 |
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); |