Merge pull request #8981 from keszybz/ratelimit-and-dbus

Ratelimit renaming and dbus error message fix
This commit is contained in:
Lennart Poettering
2018-05-18 21:38:30 +02:00
committed by GitHub
18 changed files with 49 additions and 37 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ int fchmod_umask(int fd, mode_t m) {
}
int fchmod_opath(int fd, mode_t m) {
char procfs_path[strlen("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
/* This function operates also on fd that might have been opened with
* O_PATH. Indeed fchmodat() doesn't have the AT_EMPTY_PATH flag like
+1 -1
View File
@@ -13,7 +13,7 @@
/* Modelled after Linux' lib/ratelimit.c by Dave Young
* <hidave.darkstar@gmail.com>, which is licensed GPLv2. */
bool ratelimit_test(RateLimit *r) {
bool ratelimit_below(RateLimit *r) {
usec_t ts;
assert(r);
+1 -1
View File
@@ -43,4 +43,4 @@ typedef struct RateLimit {
_r->begin = 0; \
} while (false)
bool ratelimit_test(RateLimit *r);
bool ratelimit_below(RateLimit *r);