chiark / gitweb /
unit: get rid of UnitVTable.suffix, which is now unused
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Jul 2012 15:04:42 +0000 (17:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Jul 2012 15:16:50 +0000 (17:16 +0200)
src/core/automount.c
src/core/device.c
src/core/mount.c
src/core/path.c
src/core/service.c
src/core/snapshot.c
src/core/socket.c
src/core/swap.c
src/core/target.c
src/core/timer.c
src/core/unit.h

index 697dfa1548cb31e2b601fef57ba1a7dd79b7bfb7..91162c2a58456d5c38d386becd96da0e84ff6583 100644 (file)
@@ -846,7 +846,6 @@ static const char* const automount_result_table[_AUTOMOUNT_RESULT_MAX] = {
 DEFINE_STRING_TABLE_LOOKUP(automount_result, AutomountResult);
 
 const UnitVTable automount_vtable = {
-        .suffix = ".automount",
         .object_size = sizeof(Automount),
         .sections =
                 "Unit\0"
index f4c59b3a510de5de20511d67667740d52029bb62..5307341d7056ddd7bfc3387d10b512e8ed7b476a 100644 (file)
@@ -587,7 +587,6 @@ static const char* const device_state_table[_DEVICE_STATE_MAX] = {
 DEFINE_STRING_TABLE_LOOKUP(device_state, DeviceState);
 
 const UnitVTable device_vtable = {
-        .suffix = ".device",
         .object_size = sizeof(Device),
         .sections =
                 "Unit\0"
index 3d513a051e4c88d8899da26b0a3d1eafcb9db5b4..69cb6e24e4b23861b07ea8664de3c7befb889afa 100644 (file)
@@ -1785,7 +1785,6 @@ static const char* const mount_result_table[_MOUNT_RESULT_MAX] = {
 DEFINE_STRING_TABLE_LOOKUP(mount_result, MountResult);
 
 const UnitVTable mount_vtable = {
-        .suffix = ".mount",
         .object_size = sizeof(Mount),
         .sections =
                 "Unit\0"
index 6cf03add44c9ba9a357ecb07a76fba9be7b4ba5f..42dd5da8e1c7ca401447a002a2fccdf9632864ac 100644 (file)
@@ -738,7 +738,6 @@ static const char* const path_result_table[_PATH_RESULT_MAX] = {
 DEFINE_STRING_TABLE_LOOKUP(path_result, PathResult);
 
 const UnitVTable path_vtable = {
-        .suffix = ".path",
         .object_size = sizeof(Path),
         .sections =
                 "Unit\0"
index 0c29d4aefa2729e66f0f85fe3e0b0fb6d76a848c..e57b0e970c7794d55b59b2af07b01fd9c37bfeda 100644 (file)
@@ -3798,7 +3798,6 @@ static const char* const start_limit_action_table[_SERVICE_START_LIMIT_MAX] = {
 DEFINE_STRING_TABLE_LOOKUP(start_limit_action, StartLimitAction);
 
 const UnitVTable service_vtable = {
-        .suffix = ".service",
         .object_size = sizeof(Service),
         .sections =
                 "Unit\0"
index 5bb3c4a8fd1548c598331f62d7d9310969d50130..5c2a319cb6a6c6aa98de790d19c94a8ba1dd5993 100644 (file)
@@ -281,7 +281,6 @@ static const char* const snapshot_state_table[_SNAPSHOT_STATE_MAX] = {
 DEFINE_STRING_TABLE_LOOKUP(snapshot_state, SnapshotState);
 
 const UnitVTable snapshot_vtable = {
-        .suffix = ".snapshot",
         .object_size = sizeof(Snapshot),
 
         .no_alias = true,
index ea24f4b4433658aabc39c9e5d3b89ba6bfd74c7f..3613e8420e2312928a7e47ea6ae99af6a6a49aa0 100644 (file)
@@ -2185,7 +2185,6 @@ static const char* const socket_result_table[_SOCKET_RESULT_MAX] = {
 DEFINE_STRING_TABLE_LOOKUP(socket_result, SocketResult);
 
 const UnitVTable socket_vtable = {
-        .suffix = ".socket",
         .object_size = sizeof(Socket),
         .sections =
                 "Unit\0"
index f3c7fa30766ca3a0272715d7b4245b2854dee3a9..aeb8bdab36ef4723ec5cdc9a7da82b9c4644e873 100644 (file)
@@ -1335,7 +1335,6 @@ static const char* const swap_result_table[_SWAP_RESULT_MAX] = {
 DEFINE_STRING_TABLE_LOOKUP(swap_result, SwapResult);
 
 const UnitVTable swap_vtable = {
-        .suffix = ".swap",
         .object_size = sizeof(Swap),
         .sections =
                 "Unit\0"
index a912f44ff2d17bf3bc64a20cab0af46b3dd69721..092b2065f2082f914f5971a4502354a6698c5fef 100644 (file)
@@ -198,7 +198,6 @@ static const char* const target_state_table[_TARGET_STATE_MAX] = {
 DEFINE_STRING_TABLE_LOOKUP(target_state, TargetState);
 
 const UnitVTable target_vtable = {
-        .suffix = ".target",
         .object_size = sizeof(Target),
         .sections =
                 "Unit\0"
index 6bd4cc359cf62180386530df533104c9a8a34193..0b3c5ce0770bbc37d0c775357619e72ef13b09c7 100644 (file)
@@ -486,7 +486,6 @@ static const char* const timer_result_table[_TIMER_RESULT_MAX] = {
 DEFINE_STRING_TABLE_LOOKUP(timer_result, TimerResult);
 
 const UnitVTable timer_vtable = {
-        .suffix = ".timer",
         .object_size = sizeof(Timer),
         .sections =
                 "Unit\0"
index c20c532c168a954044544cd210056519270eeb40..b0aa02f6ae931cb22fe5f88a0a5c19a2bf8c3971 100644 (file)
@@ -274,8 +274,6 @@ struct UnitStatusMessageFormats {
 #include "path.h"
 
 struct UnitVTable {
-        const char *suffix;
-
         /* How much memory does an object of this unit type need */
         size_t object_size;