mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
resolved: add more const
This commit is contained in:
parent
3f8916fb0d
commit
3c0cf50279
@ -27,7 +27,7 @@ int dns_server_new(
|
||||
DnsServerSource source,
|
||||
Link *l,
|
||||
unsigned char family,
|
||||
union in_addr_union *in_addr) {
|
||||
const union in_addr_union *in_addr) {
|
||||
|
||||
DnsServer *s, *tail;
|
||||
|
||||
|
@ -21,10 +21,11 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include "in-addr-util.h"
|
||||
|
||||
typedef struct DnsServer DnsServer;
|
||||
typedef enum DnsServerSource DnsServerSource;
|
||||
|
||||
#include "in-addr-util.h"
|
||||
#include "resolved.h"
|
||||
#include "resolved-link.h"
|
||||
#include "resolved-dns-server.h"
|
||||
@ -40,12 +41,12 @@ struct DnsServer {
|
||||
Manager *manager;
|
||||
DnsServerSource source;
|
||||
|
||||
Link *link;
|
||||
|
||||
unsigned char family;
|
||||
union in_addr_union address;
|
||||
|
||||
bool marked;
|
||||
|
||||
Link *link;
|
||||
bool marked:1;
|
||||
|
||||
LIST_FIELDS(DnsServer, servers);
|
||||
};
|
||||
@ -56,6 +57,6 @@ int dns_server_new(
|
||||
DnsServerSource source,
|
||||
Link *l,
|
||||
unsigned char family,
|
||||
union in_addr_union *in_addr);
|
||||
const union in_addr_union *address);
|
||||
|
||||
DnsServer* dns_server_free(DnsServer *s);
|
||||
|
Loading…
Reference in New Issue
Block a user