Module: xenomai-3 Branch: master Commit: 0dbe013a6dadbfcd3fc7f72e013f6f1c1dbc4425 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=0dbe013a6dadbfcd3fc7f72e013f6f1c1dbc4425
Author: Philippe Gerum <r...@xenomai.org> Date: Thu Feb 19 21:36:53 2015 +0100 copperplate/regd: fix build with _FORTIFY_SOURCE > 0 --- lib/copperplate/regd/regd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/copperplate/regd/regd.c b/lib/copperplate/regd/regd.c index febaee4..c8ae0f6 100644 --- a/lib/copperplate/regd/regd.c +++ b/lib/copperplate/regd/regd.c @@ -149,9 +149,8 @@ static int create_directory_recursive(const char *dir) /* absolute path */ } free(s); - chdir(rootdir); /* Back to rootdir */ - return 0; + return chdir(rootdir) ? -errno : 0; /* Back to rootdir */ } static void create_rootdir(void) @@ -259,7 +258,7 @@ fail_nopath: static void unmount(const char *path) { - int flags; + int flags, ret; char *cmd; /* @@ -271,7 +270,8 @@ static void unmount(const char *path) fcntl(2, F_SETFD, flags | FD_CLOEXEC); if (asprintf(&cmd, "/usr/bin/fusermount -uzq %s", path) > 0) { - system(cmd); + ret = system(cmd); + (void)ret; free(cmd); } } _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git