[vte] Fix warnings
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] Fix warnings
- Date: Thu, 1 Apr 2010 05:49:38 +0000 (UTC)
commit 0f095ac8755655525a48424773cf06b5b9ed21e9
Author: Behdad Esfahbod <behdad behdad org>
Date: Thu Apr 1 01:49:30 2010 -0400
Fix warnings
src/dumpkeys.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/dumpkeys.c b/src/dumpkeys.c
index fcf9a5b..976eb5e 100644
--- a/src/dumpkeys.c
+++ b/src/dumpkeys.c
@@ -170,7 +170,7 @@ reset(void)
}
/* Cleanly exit. */
-static void
+G_GNUC_NORETURN static void
sigint_handler(int signum)
{
if (tcsetattr(STDIN_FILENO, TCSANOW, &original) != 0) {
@@ -293,7 +293,7 @@ main(int argc, char **argv)
if (saved) {
restore_cursor();
}
- g_byte_array_append(bytes, &c, 1);
+ g_byte_array_append(bytes, (const guint8 *) &c, 1);
/* Wait for up to just under 1/50 second. */
tv.tv_sec = 0;
tv.tv_usec = 1000000 / 50;
@@ -302,7 +302,7 @@ main(int argc, char **argv)
while (select(STDIN_FILENO + 1,
&readset, NULL, NULL, &tv) == 1) {
if (read(STDIN_FILENO, &c, 1) == 1) {
- g_byte_array_append(bytes, &c, 1);
+ g_byte_array_append(bytes, (const guint8 *) &c, 1);
} else {
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]