Skip to content

Commit cf4b2f9

Browse files
committed
tree-wide: use unsigned for refcount
1 parent 5666334 commit cf4b2f9

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

src/core/dynamic-user.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ typedef struct DynamicCreds {
1515
* used. This means, if you want to allocate a group and user pair, and they might have two different names, then you
1616
* need to allocated two of these objects. DynamicCreds below makes that easy. */
1717
struct DynamicUser {
18-
int n_ref;
18+
unsigned n_ref;
1919
Manager *manager;
2020

2121
/* An AF_UNIX socket pair that contains a datagram containing both the numeric ID assigned, as well as a lock

src/core/execute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ struct ExecCommand {
107107
* between invocations of commands. This is a reference counted object, with one reference taken by each currently
108108
* active command invocation that wants to share this runtime. */
109109
struct ExecRuntime {
110-
int n_ref;
110+
unsigned n_ref;
111111

112112
Manager *manager;
113113

src/journal-remote/journal-remote-write.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ typedef struct Writer {
1616

1717
uint64_t seqnum;
1818

19-
int n_ref;
19+
unsigned n_ref;
2020
} Writer;
2121

2222
Writer* writer_new(RemoteServer* server);

src/journal/mmap-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct MMapFileDescriptor {
5353
};
5454

5555
struct MMapCache {
56-
int n_ref;
56+
unsigned n_ref;
5757
unsigned n_windows;
5858

5959
unsigned n_hit, n_missed;

src/libsystemd/sd-device/device-internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "set.h"
88

99
struct sd_device {
10-
uint64_t n_ref;
10+
unsigned n_ref;
1111

1212
sd_device *parent;
1313
bool parent_set; /* no need to try to reload parent */

src/network/netdev/netdev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ typedef struct Condition Condition;
7272
typedef struct NetDev {
7373
Manager *manager;
7474

75-
int n_ref;
75+
unsigned n_ref;
7676

7777
char *filename;
7878

src/network/networkd-link.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ typedef struct DUID DUID;
4949
typedef struct Link {
5050
Manager *manager;
5151

52-
int n_ref;
52+
unsigned n_ref;
5353

5454
int ifindex;
5555
char *ifname;

src/resolve/resolved-dns-packet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct DnsPacketHeader {
5353
#define DNS_PACKET_UNICAST_SIZE_LARGE_MAX 4096u
5454

5555
struct DnsPacket {
56-
int n_ref;
56+
unsigned n_ref;
5757
DnsProtocol protocol;
5858
size_t size, allocated, rindex, max_size;
5959
void *_data; /* don't access directly, use DNS_PACKET_DATA()! */

src/resolve/resolved-dns-stream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ typedef struct DnsStream DnsStream;
2323

2424
struct DnsStream {
2525
Manager *manager;
26-
int n_ref;
26+
unsigned n_ref;
2727

2828
DnsProtocol protocol;
2929

0 commit comments

Comments
 (0)