summaryrefslogtreecommitdiff
path: root/src/notification_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/notification_init.c')
-rw-r--r--src/notification_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/notification_init.c b/src/notification_init.c
index a97cdd1..72d6cdc 100644
--- a/src/notification_init.c
+++ b/src/notification_init.c
@@ -38,10 +38,10 @@
#undef _E
#endif
#define _E(fmt, arg...) fprintf(stderr, "[NOTIFICATION_INIT][E][%s,%d] "fmt"\n", \
- __FUNCTION__, __LINE__, ##arg);
+ __func__, __LINE__, ##arg)
/* LCOV_EXCL_START */
-static int _is_authorized()
+static int _is_authorized(void)
{
/* pkg_init db should be called by as root privilege. */
uid_t uid = getuid();