diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-09-25 20:21:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-09-25 20:21:45 +0100 |
commit | c719fdcee603a5a706a45d10cb598762d56a727d (patch) | |
tree | 620cbf137661399a3fb1eff92914204f9a970713 /app-i18n/ibus-fbterm/files/ibus-fbterm-clang.patch | |
parent | cc4618c9ba3d974948ebf340b542d8cb01db2f55 (diff) |
gentoo resync : 25.09.2021
Diffstat (limited to 'app-i18n/ibus-fbterm/files/ibus-fbterm-clang.patch')
-rw-r--r-- | app-i18n/ibus-fbterm/files/ibus-fbterm-clang.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/app-i18n/ibus-fbterm/files/ibus-fbterm-clang.patch b/app-i18n/ibus-fbterm/files/ibus-fbterm-clang.patch new file mode 100644 index 000000000000..797592c3240b --- /dev/null +++ b/app-i18n/ibus-fbterm/files/ibus-fbterm-clang.patch @@ -0,0 +1,48 @@ +--- a/backend/fbio.c ++++ b/backend/fbio.c +@@ -204,7 +204,7 @@ + int + fb_io_get_fd (FbIo *io) + { +- g_return_if_fail (FB_IS_IO (io)); ++ g_return_val_if_fail (FB_IS_IO (io), -1); + return io->priv->fd; + } + +--- a/backend/fbshell.c ++++ b/backend/fbshell.c +@@ -17,11 +17,11 @@ + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ +-#include <glib.h> +- +-#define _XOPEN_SOURCE ++#define _XOPEN_SOURCE 600 + #define __USE_XOPEN + ++#include <glib.h> ++ + #include <errno.h> + #include <fcntl.h> + #include <pty.h> +--- a/backend/fbshellman.c ++++ b/backend/fbshellman.c +@@ -81,7 +81,7 @@ + FbShellManagerPrivate *priv; + int index, temp, i; + +- g_return_if_fail (FB_IS_SHELL_MANAGER (shell_manager)); ++ g_return_val_if_fail (FB_IS_SHELL_MANAGER (shell_manager), NR_SHELLS); + + #define STEP() do { \ + if (forward) temp++; \ +@@ -267,7 +267,7 @@ + FbShell * + fb_shell_manager_active_shell (FbShellManager *shell_manager) + { +- g_return_if_fail (FB_IS_SHELL_MANAGER (shell_manager)); ++ g_return_val_if_fail (FB_IS_SHELL_MANAGER (shell_manager), NULL); + + return shell_manager->priv->active_shell; + } |