diff --git a/libdaemon/server/daemon-server.c b/libdaemon/server/daemon-server.c index 97839d85a..65c8859cb 100644 --- a/libdaemon/server/daemon-server.c +++ b/libdaemon/server/daemon-server.c @@ -323,7 +323,7 @@ static void _remove_lockfile(const char *file) perror("unlink failed"); } -static void _daemonise(daemon_state s) +static void _daemonize(daemon_state s) { int child_status; int fd; @@ -582,7 +582,7 @@ void daemon_start(daemon_state s) #endif if (!s.foreground) - _daemonise(s); + _daemonize(s); s.log = &_log; s.log->name = s.name; diff --git a/libdm/dm-tools/dmfilemapd.c b/libdm/dm-tools/dmfilemapd.c index 6ee673213..92efda954 100644 --- a/libdm/dm-tools/dmfilemapd.c +++ b/libdm/dm-tools/dmfilemapd.c @@ -624,7 +624,7 @@ check_unlinked: return 1; } -static int _daemonise(struct filemap_monitor *fm) +static int _daemonize(struct filemap_monitor *fm) { pid_t pid = 0; int fd, ffd; @@ -825,7 +825,7 @@ int main(int argc, char **argv) "mode=%s, path=\"%s\"", fm.fd, fm.group_id, _mode_names[fm.mode], fm.path); - if (!_foreground && !_daemonise(&fm)) { + if (!_foreground && !_daemonize(&fm)) { free(fm.path); return 1; }