tree-wide: use unsigned for refcount
This commit is contained in:
parent
56663345df
commit
cf4b2f9906
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ typedef struct Writer {
|
|||
|
||||
uint64_t seqnum;
|
||||
|
||||
int n_ref;
|
||||
unsigned n_ref;
|
||||
} Writer;
|
||||
|
||||
Writer* writer_new(RemoteServer* server);
|
||||
|
|
|
@ -53,7 +53,7 @@ struct MMapFileDescriptor {
|
|||
};
|
||||
|
||||
struct MMapCache {
|
||||
int n_ref;
|
||||
unsigned n_ref;
|
||||
unsigned n_windows;
|
||||
|
||||
unsigned n_hit, n_missed;
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -72,7 +72,7 @@ typedef struct Condition Condition;
|
|||
typedef struct NetDev {
|
||||
Manager *manager;
|
||||
|
||||
int n_ref;
|
||||
unsigned n_ref;
|
||||
|
||||
char *filename;
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ typedef struct DUID DUID;
|
|||
typedef struct Link {
|
||||
Manager *manager;
|
||||
|
||||
int n_ref;
|
||||
unsigned n_ref;
|
||||
|
||||
int ifindex;
|
||||
char *ifname;
|
||||
|
|
|
@ -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()! */
|
||||
|
|
|
@ -23,7 +23,7 @@ typedef struct DnsStream DnsStream;
|
|||
|
||||
struct DnsStream {
|
||||
Manager *manager;
|
||||
int n_ref;
|
||||
unsigned n_ref;
|
||||
|
||||
DnsProtocol protocol;
|
||||
|
||||
|
|
Loading…
Reference in New Issue