shithub: drawterm

Download patch

ref: 6b188c0bae7c110cc1e7216d8688a652cd0df0cc
parent: efbc81f6f60f7e0e25e6e7055873f1a30359b3b1
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Dec 10 10:42:01 EST 2016

tas: fix function prototype, tas takes int* and returns int

--- a/include/lib.h
+++ b/include/lib.h
@@ -134,7 +134,7 @@
 	int init;
 	pthread_mutex_t mutex;
 #else
-	long	key;
+	int key;
 #endif
 } Lock;
 
@@ -262,7 +262,7 @@
 extern	int	tokenize(char*, char**, int);
 extern	int	getfields(char*, char**, int, int, char*);
 extern	char*	utfecpy(char*, char*, char*);
-extern	long	tas(long*);
+extern	int	tas(int*);
 extern	void	quotefmtinstall(void);
 extern	int	dec64(uchar*, int, char*, int);
 extern	int	enc64(char*, int, uchar*, int);
--- a/posix-386/tas.c
+++ b/posix-386/tas.c
@@ -2,7 +2,7 @@
 #include "libc.h"
 
 int
-tas(long *x)
+tas(int *x)
 {
 	int     v;
 
--- a/posix-amd64/tas.c
+++ b/posix-amd64/tas.c
@@ -2,7 +2,7 @@
 #include "libc.h"
 
 int
-tas(long *x)
+tas(int *x)
 {
 	int     v;
 
--- a/posix-arm/tas.c
+++ b/posix-arm/tas.c
@@ -2,7 +2,7 @@
 #include "libc.h"
 
 int
-tas(long *x)
+tas(int *x)
 {
 	int     v, t, i = 1;
 
--- a/posix-power/tas.c
+++ b/posix-power/tas.c
@@ -6,7 +6,7 @@
  * r3 contains return value upon return.
  */
 int
-tas(long *x)
+tas(int *x)
 {
 	int     v;
 	/*
--- a/win32-386/tas.c
+++ b/win32-386/tas.c
@@ -2,7 +2,7 @@
 #include "libc.h"
 
 int
-tas(long *x)
+tas(int *x)
 {
 	int     v;