]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: drop _pure_ attribute from non-pure functions
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 9 May 2023 18:22:16 +0000 (03:22 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 May 2023 06:06:24 +0000 (15:06 +0900)
Prompted by #27595.
Follow-ups for 6723c28f36ea566faf61d3610012cd89f95ee4a0.

src/basic/hash-funcs.h
src/core/job.h

index c14302ec72285c5fab5feb6b7b3edac368a13571..be64289252a9c0fc9bc1e17c1e03e2b942b8d66c 100644 (file)
@@ -102,7 +102,7 @@ extern const struct hash_ops uint64_hash_ops;
 /* On some archs dev_t is 32bit, and on others 64bit. And sometimes it's 64bit on 32bit archs, and sometimes 32bit on
  * 64bit archs. Yuck! */
 #if SIZEOF_DEV_T != 8
-void devt_hash_func(const dev_t *p, struct siphash *state) _pure_;
+void devt_hash_func(const dev_t *p, struct siphash *state);
 #else
 #define devt_hash_func uint64_hash_func
 #endif
index df35e2a5b6258744f3db7ba2663ad597dc0a8746..dcb5c7fff6cf86c8c1291331b20be6089ff6e758 100644 (file)
@@ -220,7 +220,7 @@ char *job_dbus_path(Job *j);
 
 void job_shutdown_magic(Job *j);
 
-int job_get_timeout(Job *j, usec_t *timeout) _pure_;
+int job_get_timeout(Job *j, usec_t *timeout);
 
 bool job_may_gc(Job *j);
 void job_add_to_gc_queue(Job *j);