[moserial] fix posix.vapi warnings
- From: Michael J. Chudobiak <mjc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [moserial] fix posix.vapi warnings
- Date: Mon, 14 Feb 2011 14:53:14 +0000 (UTC)
commit 775f8764652be9e74e3a542a6ee84e4ff33e1fac
Author: Marlo <brooss teambb gmail com>
Date: Mon Feb 14 09:51:32 2011 -0500
fix posix.vapi warnings
src/posix.vapi | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/posix.vapi b/src/posix.vapi
index ce1ede9..1af07f4 100644
--- a/src/posix.vapi
+++ b/src/posix.vapi
@@ -214,7 +214,7 @@ namespace POSIX
public const int errno;
[CCode (cname = "strerror")]
- public static weak string to_string (int err_no);
+ public static unowned string to_string (int err_no);
[CCode (cname = "perror")]
public static void print_error (string? prefix = null);
@@ -468,7 +468,8 @@ namespace POSIX
[CCode (cname = "SIG_IGN")]
public const int IGN;
- public static delegate void Handler (int sig_num);
+ [CCode (has_target = false)]
+ public delegate void Handler (int sig_num);
// vala does not have overloading, so we simply create
// to functions, one taking the handler and one taking
@@ -501,8 +502,8 @@ namespace POSIX
int si_band;
int si_fd;
}
-
- public static delegate void ActionHandler (int sig_num, Info info, void* context);
+ [CCode (has_target = false)]
+ public delegate void ActionHandler (int sig_num, Info info, void* context);
[CCode (cname = "struct sigaction")]
public struct Action
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]