diff options
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/format-table.c | 1 | ||||
-rw-r--r-- | src/basic/hash-funcs.c | 1 | ||||
-rw-r--r-- | src/basic/mount-util.c | 1 | ||||
-rw-r--r-- | src/basic/random-util.c | 1 | ||||
-rw-r--r-- | src/basic/selinux-util.c | 1 | ||||
-rw-r--r-- | src/basic/socket-util.c | 2 |
6 files changed, 0 insertions, 7 deletions
diff --git a/src/basic/format-table.c b/src/basic/format-table.c index f1ef562ab..35948a602 100644 --- a/src/basic/format-table.c +++ b/src/basic/format-table.c @@ -855,7 +855,6 @@ static const char *table_data_format(TableData *d) { assert_not_reached("Unexpected type?"); } - return d->formatted; } diff --git a/src/basic/hash-funcs.c b/src/basic/hash-funcs.c index b62f2bd87..13e357efd 100644 --- a/src/basic/hash-funcs.c +++ b/src/basic/hash-funcs.c @@ -24,7 +24,6 @@ const struct hash_ops string_hash_ops = { .compare = string_compare_func }; - void path_hash_func(const void *p, struct siphash *state) { const char *q = p; size_t n; diff --git a/src/basic/mount-util.c b/src/basic/mount-util.c index b3817c03c..1736cf19b 100644 --- a/src/basic/mount-util.c +++ b/src/basic/mount-util.c @@ -860,7 +860,6 @@ const char *mount_propagation_flags_to_string(unsigned long flags) { return NULL; } - int mount_propagation_flags_from_string(const char *name, unsigned long *ret) { if (isempty(name)) diff --git a/src/basic/random-util.c b/src/basic/random-util.c index 803ca790f..fe283050c 100644 --- a/src/basic/random-util.c +++ b/src/basic/random-util.c @@ -109,7 +109,6 @@ void initialize_srand(void) { #endif x = 0; - x ^= (unsigned) now(CLOCK_REALTIME); x ^= (unsigned) gettid(); diff --git a/src/basic/selinux-util.c b/src/basic/selinux-util.c index 518a6f5a4..c02ee2ca5 100644 --- a/src/basic/selinux-util.c +++ b/src/basic/selinux-util.c @@ -316,7 +316,6 @@ char* mac_selinux_free(char *label) { if (!mac_selinux_use()) return NULL; - freecon(label); #endif diff --git a/src/basic/socket-util.c b/src/basic/socket-util.c index 983a7b423..75bfcf98a 100644 --- a/src/basic/socket-util.c +++ b/src/basic/socket-util.c @@ -687,7 +687,6 @@ int sockaddr_pretty(const struct sockaddr *_sa, socklen_t salen, bool translate_ return -EOPNOTSUPP; } - *ret = p; return 0; } @@ -1154,7 +1153,6 @@ int flush_accept(int fd) { }; int r; - /* Similar to flush_fd() but flushes all incoming connection by accepting them and immediately closing them. */ for (;;) { |