chiark / gitweb /
service: remove unneccesary Socket.got_socket_fd
[elogind.git] / src / core / target.h
index 62bc34382bb7b825155adc4c00af0a070f9a627e..a5398d9e9828278c9085ececdec6e3217fcc21bc 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef footargethfoo
-#define footargethfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -41,7 +40,5 @@ struct Target {
 
 extern const UnitVTable target_vtable;
 
-const char* target_state_to_string(TargetState i);
-TargetState target_state_from_string(const char *s);
-
-#endif
+const char* target_state_to_string(TargetState i) _const_;
+TargetState target_state_from_string(const char *s) _pure_;