X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Flabel.h;h=1220b18965db29303e0ce58e872299fe866b1907;hb=56d4fbf92eb6d8eb31c910e137224308c40dd909;hp=2eaabfa62584ba343da5ce69004d60b802fecf47;hpb=c66e7f04997fb42b778703418097a5023fa17581;p=elogind.git diff --git a/src/shared/label.h b/src/shared/label.h index 2eaabfa62..1220b1896 100644 --- a/src/shared/label.h +++ b/src/shared/label.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foolabelhfoo -#define foolabelhfoo +#pragma once /*** This file is part of systemd. @@ -26,10 +25,10 @@ #include #include -int label_init(const char *prefixes[]); +int label_init(const char *prefix); void label_finish(void); -int label_fix(const char *path, bool ignore_enoent); +int label_fix(const char *path, bool ignore_enoent, bool ignore_erofs); int label_socket_set(const char *label); void label_socket_clear(void); @@ -46,5 +45,3 @@ int label_mkdir(const char *path, mode_t mode, bool apply); void label_retest_selinux(void); int label_bind(int fd, const struct sockaddr *addr, socklen_t addrlen); - -#endif