]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: use unsigned for refcount
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 Aug 2018 04:48:04 +0000 (13:48 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 Aug 2018 04:48:04 +0000 (13:48 +0900)
src/core/dynamic-user.h
src/core/execute.h
src/journal-remote/journal-remote-write.h
src/journal/mmap-cache.c
src/libsystemd/sd-device/device-internal.h
src/network/netdev/netdev.h
src/network/networkd-link.h
src/resolve/resolved-dns-packet.h
src/resolve/resolved-dns-stream.h

index 791a8ba0efd45dfa07edac54adada0b3a5d5b565..112f91e63a03f9e7528c8efb411c8f7a1124e213 100644 (file)
@@ -15,7 +15,7 @@ typedef struct DynamicCreds {
  * used. This means, if you want to allocate a group and user pair, and they might have two different names, then you
  * need to allocated two of these objects. DynamicCreds below makes that easy. */
 struct DynamicUser {
-        int n_ref;
+        unsigned n_ref;
         Manager *manager;
 
         /* An AF_UNIX socket pair that contains a datagram containing both the numeric ID assigned, as well as a lock
index 2e8b01f7695f97f9899e195a0187689cb62533b4..03a36e608cdbd537fc091fa208b87d096b07b70c 100644 (file)
@@ -107,7 +107,7 @@ struct ExecCommand {
  * between invocations of commands. This is a reference counted object, with one reference taken by each currently
  * active command invocation that wants to share this runtime. */
 struct ExecRuntime {
-        int n_ref;
+        unsigned n_ref;
 
         Manager *manager;
 
index 7ed32aa5aa83bdf07ecfba61a64b3b9336b4e36e..9f3df423d86e03264a386c0a66f877e363589e9b 100644 (file)
@@ -16,7 +16,7 @@ typedef struct Writer {
 
         uint64_t seqnum;
 
-        int n_ref;
+        unsigned n_ref;
 } Writer;
 
 Writer* writer_new(RemoteServer* server);
index 2366055f0ac4f6d75e56c62d8decd0555a09f2d4..442c994b9fcb33dbb11baf2b0eedeb8360f238f9 100644 (file)
@@ -53,7 +53,7 @@ struct MMapFileDescriptor {
 };
 
 struct MMapCache {
-        int n_ref;
+        unsigned n_ref;
         unsigned n_windows;
 
         unsigned n_hit, n_missed;
index 996008bf6de8d5f3be28cafdbefd67e94a3636cb..39e984cf7cf10a6c713bdc61fbd8690fadcd2a0a 100644 (file)
@@ -7,7 +7,7 @@
 #include "set.h"
 
 struct sd_device {
-        uint64_t n_ref;
+        unsigned n_ref;
 
         sd_device *parent;
         bool parent_set; /* no need to try to reload parent */
index d073216b148d0a0ae972482b48a6b1df3e98ec33..2746de01a077eaef6d2dd12f6f3c71fc32c8f4ac 100644 (file)
@@ -72,7 +72,7 @@ typedef struct Condition Condition;
 typedef struct NetDev {
         Manager *manager;
 
-        int n_ref;
+        unsigned n_ref;
 
         char *filename;
 
index 912952e651cc144c5945322337a3738347387391..dcf722a63dca70764d22d39193781e0cbf4b57e8 100644 (file)
@@ -49,7 +49,7 @@ typedef struct DUID DUID;
 typedef struct Link {
         Manager *manager;
 
-        int n_ref;
+        unsigned n_ref;
 
         int ifindex;
         char *ifname;
index d616c32993803d8667c752213f4b02fdd7becf4e..5ebaff33d710fab04f2c0e0af37b0783d9c6832d 100644 (file)
@@ -53,7 +53,7 @@ struct DnsPacketHeader {
 #define DNS_PACKET_UNICAST_SIZE_LARGE_MAX 4096u
 
 struct DnsPacket {
-        int n_ref;
+        unsigned n_ref;
         DnsProtocol protocol;
         size_t size, allocated, rindex, max_size;
         void *_data; /* don't access directly, use DNS_PACKET_DATA()! */
index 72db2a1a56ac6d1d4393a787b1b537661ac17279..46d2704afefdde6da94d0004628af26ad6faacbb 100644 (file)
@@ -23,7 +23,7 @@ typedef struct DnsStream DnsStream;
 
 struct DnsStream {
         Manager *manager;
-        int n_ref;
+        unsigned n_ref;
 
         DnsProtocol protocol;