From: kremlin Date: Mon, 25 Aug 2014 03:43:53 +0000 (-0500) Subject: change polkit-auth.{c,h} to util.{c,h} X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=commitdiff_plain;h=ed4cf3c89bbf73021ea8a1db6ceb86f2f93683cd;p=systembsd.git change polkit-auth.{c,h} to util.{c,h} we are going to include the /etc/os-release changing functions in here. --- diff --git a/Makefile b/Makefile index 2157aa7..91eceaf 100644 --- a/Makefile +++ b/Makefile @@ -79,7 +79,7 @@ _build_genfile_objs: _generate_genfiles _build_auth_obj $(CC) -o bin/obj/logind-gen.o $(CFLAGS) $(GLIBOF) -c $(INTFDIR)/logind/logind-gen.c _build_auth_obj: - $(CC) -o bin/obj/polkit-auth.o $(CFLAGS) $(GLIBOF) -c $(SRCDIR)/polkit-auth.c + $(CC) -o bin/obj/polkit-auth.o $(CFLAGS) $(GLIBOF) -c $(SRCDIR)/util.c _generate_genfiles: $(INVOKE_GENFILE_SCRIPT) hostnamed diff --git a/src/interfaces/hostnamed/hostnamed.c b/src/interfaces/hostnamed/hostnamed.c index 81200e7..f3a6372 100644 --- a/src/interfaces/hostnamed/hostnamed.c +++ b/src/interfaces/hostnamed/hostnamed.c @@ -34,7 +34,7 @@ #include "hostnamed-gen.h" #include "hostnamed.h" -#include "../../polkit-auth.h" +#include "../../util.h" /* format: { * (1) string to be matched against runtime machine's sysctl output. diff --git a/src/interfaces/localed/localed.c b/src/interfaces/localed/localed.c index 33769a3..da690af 100644 --- a/src/interfaces/localed/localed.c +++ b/src/interfaces/localed/localed.c @@ -28,7 +28,7 @@ #include "localed-gen.h" #include "localed.h" -#include "../../polkit-auth.h" +#include "../../util.h" GPtrArray *localed_freeable; Locale1 *localed_interf; diff --git a/src/interfaces/logind/logind.c b/src/interfaces/logind/logind.c index c445665..02323d0 100644 --- a/src/interfaces/logind/logind.c +++ b/src/interfaces/logind/logind.c @@ -28,7 +28,7 @@ #include "logind-gen.h" #include "logind.h" -#include "../../polkit-auth.h" +#include "../../util.h" GPtrArray *logind_freeable; Login1Manager *logind_interf; diff --git a/src/interfaces/timedated/timedated.c b/src/interfaces/timedated/timedated.c index f76850c..bda7098 100644 --- a/src/interfaces/timedated/timedated.c +++ b/src/interfaces/timedated/timedated.c @@ -28,7 +28,7 @@ #include "timedated-gen.h" #include "timedated.h" -#include "../../polkit-auth.h" +#include "../../util.h" GPtrArray *timedated_freeable; Timedate1 *timedated_interf; diff --git a/src/polkit-auth.c b/src/util.c similarity index 99% rename from src/polkit-auth.c rename to src/util.c index f967cd0..f228c9a 100644 --- a/src/polkit-auth.c +++ b/src/util.c @@ -22,7 +22,7 @@ #include #include -#include "polkit-auth.h" +#include "util.h" static gboolean is_valid_action(GList *action_list, const gchar *action) { diff --git a/src/polkit-auth.h b/src/util.h similarity index 100% rename from src/polkit-auth.h rename to src/util.h