Merge pull request #9468 from yuwata/small-cleanups

small fixes and cleanups for comments
This commit is contained in:
Lennart Poettering
2018-06-29 11:35:57 +02:00
committed by GitHub
167 changed files with 10 additions and 268 deletions
+2 -2
View File
@@ -79,7 +79,7 @@
for <parameter>slot</parameter> in the <parameter>callback</parameter> parameter.</para>
<para><function>sd_bus_track_set_destroy_callback()</function> and
<function>sd_bus_track_get_destroy_callback</function> provide equivalent functionality for the
<function>sd_bus_track_get_destroy_callback()</function> provide equivalent functionality for the
<parameter>userdata</parameter> pointer associated with bus peer tracking objects. For details about bus peer
tracking objects, see
<citerefentry><refentrytitle>sd_bus_track_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para>
@@ -93,7 +93,7 @@
negative errno-style error code.</para>
<para><function>sd_bus_slot_get_destroy_callback()</function> and
<function>sd_bus_track_get_destroy_callback</function> return positive if the destroy callback function is set, 0
<function>sd_bus_track_get_destroy_callback()</function> return positive if the destroy callback function is set, 0
if not. On failure, they return a negative errno-style error code.</para>
</refsect1>
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <sys/types.h>
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stdbool.h>
#include "hashmap.h"
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
enum {
CONF_FILES_EXECUTABLE = 1 << 0,
CONF_FILES_REGULAR = 1 << 1,
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <sched.h>
#include "macro.h"
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <net/ethernet.h>
#include <stdbool.h>
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stdio.h>
#include "fileio.h"
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <inttypes.h>
#if SIZEOF_PID_T == 4
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "macro.h"
#include "siphash24.h"
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <limits.h>
#include <stdbool.h>
#include <stddef.h>
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stddef.h>
struct pool;
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <sys/types.h>
typedef enum MkdirFlags {
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "securebits.h"
int secure_bits_to_string_alloc(int i, char **s);
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stddef.h>
#include "macro.h"
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <endian.h>
#include <stdint.h>
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <inttypes.h>
#include "unit.h"
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "conf-parser.h"
#include "in-addr-util.h"
#include "list.h"
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-bus.h"
#include "bus-util.h"
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-id128.h"
#include "macro.h"
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-event.h"
#include "sd-lldp.h"
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-event.h"
int lldp_network_bind_raw_socket(int ifindex);
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stdbool.h>
#include "sd-dhcp-lease.h"
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "bus-error.h"
#define BUS_ERROR_NO_SUCH_UNIT "org.freedesktop.systemd1.NoSuchUnit"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <fcntl.h>
#include <unistd.h>
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "sd-bus.h"
int bus_container_connect_socket(sd_bus *b);
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#if HAVE_VALGRIND_MEMCHECK_H
#include <valgrind/memcheck.h>
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "sd-bus.h"
int bus_add_match_internal(sd_bus *bus, const char *match);
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "bus-internal.h"
#include "bus-message.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <linux/capability.h>
#include <stdlib.h>
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <stdbool.h>
#include "sd-bus.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "alloc-util.h"
#include "bus-dump.h"
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <stdbool.h>
#include <stdio.h>
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <stdarg.h>
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <stdbool.h>
#include "sd-bus.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <string.h>
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "macro.h"
int bus_gvariant_get_size(const char *signature) _pure_;
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "alloc-util.h"
#include "bus-internal.h"
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <pthread.h>
#include <sys/socket.h>
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <stdio_ext.h>
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <stdio.h>
#include "sd-bus.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#if HAVE_VALGRIND_MEMCHECK_H
#include <valgrind/memcheck.h>
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "sd-bus.h"
#define MEMFD_CACHE_MAX 32
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <stdio_ext.h>
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "sd-bus.h"
#include "hashmap.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <fcntl.h>
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <byteswap.h>
#include <stdbool.h>
#include <sys/socket.h>
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "alloc-util.h"
#include "bus-internal.h"
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "bus-internal.h"
int bus_process_object(sd_bus *bus, sd_bus_message *m);
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <endian.h>
#include "macro.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <util.h>
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <stdbool.h>
bool signature_is_single(const char *s, bool allow_dict_entry);
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "sd-bus.h"
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "sd-bus.h"
#include "bus-internal.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <endian.h>
#include <poll.h>
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "sd-bus.h"
void bus_socket_setup(sd_bus *b);
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "sd-bus.h"
-3
View File
@@ -1,8 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
void bus_track_dispatch(sd_bus_track *track);
void bus_track_close(sd_bus_track *track);
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <stdbool.h>
#include "macro.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <endian.h>
#include <netdb.h>
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <sys/wait.h>
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <fcntl.h>
#include <pthread.h>
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "sd-bus.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "sd-bus.h"
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#if HAVE_GLIB
#include <glib.h>
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "bus-introspect.h"
#include "log.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <math.h>
#include <stdlib.h>
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "bus-match.h"
#include "bus-message.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <pthread.h>
#include <stdlib.h>
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <pthread.h>
#include <stdlib.h>
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "bus-internal.h"
#include "bus-signature.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <sys/socket.h>
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <pthread.h>
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <limits.h>
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-device.h"
int device_enumerator_scan_devices(sd_device_enumerator *enumeartor);
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "hashmap.h"
#include "set.h"
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <inttypes.h>
#include <stdbool.h>
#include <sys/types.h>
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "util.h"
#define FOREACH_DEVICE_PROPERTY(device, key, value) \
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <sys/epoll.h>
#include <sys/timerfd.h>
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <sys/wait.h>
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sparse-endian.h"
#include "util.h"
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-hwdb.h"
#include "util.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <fcntl.h>
-3
View File
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <stdbool.h>
#include "sd-id128.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <fcntl.h>
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <poll.h>
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <poll.h>
#include <string.h>
@@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "sd-netlink.h"
#include "in-addr-util.h"
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <linux/netlink.h>
#include "sd-netlink.h"
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "macro.h"
enum {
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-netlink.h"
#include "util.h"
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "af-list.h"
#include "alloc-util.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "alloc-util.h"
#include "fd-util.h"
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-network.h"
bool network_is_online(void);
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "sd-path.h"
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <poll.h>
-2
View File
@@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "sd-utf8.h"
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "libudev.h"
#include "sd-device.h"
-1
View File
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>

Some files were not shown because too many files have changed in this diff Show More