aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/syscall
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-11-06 18:28:21 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-11-06 18:28:21 +0000
commitfb3f38da2a7d45b88c838b3ac55fe40479961790 (patch)
tree89ff7fdde0dc578287fb6c80a46652eaf78f3ddf /libgo/go/syscall
parent855a44ee8f73b4c53a0bad7780baa85d043b890f (diff)
downloadgcc-fb3f38da2a7d45b88c838b3ac55fe40479961790.zip
gcc-fb3f38da2a7d45b88c838b3ac55fe40479961790.tar.gz
gcc-fb3f38da2a7d45b88c838b3ac55fe40479961790.tar.bz2
compiler, libgo: Fixes to prepare for 64-bit int.
From-SVN: r193254
Diffstat (limited to 'libgo/go/syscall')
-rw-r--r--libgo/go/syscall/signame.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/syscall/signame.c b/libgo/go/syscall/signame.c
index 5ff0b09..c2d3b9f 100644
--- a/libgo/go/syscall/signame.c
+++ b/libgo/go/syscall/signame.c
@@ -10,10 +10,10 @@
#include "arch.h"
#include "malloc.h"
-String Signame (int sig) asm ("syscall.Signame");
+String Signame (intgo sig) asm ("syscall.Signame");
String
-Signame (int sig)
+Signame (intgo sig)
{
const char* s = NULL;
char buf[100];
@@ -27,7 +27,7 @@ Signame (int sig)
if (s == NULL)
{
- snprintf(buf, sizeof buf, "signal %d", sig);
+ snprintf(buf, sizeof buf, "signal %ld", (long) sig);
s = buf;
}
len = __builtin_strlen (s);