shithub: drawterm

Download patch

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

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

--- a/include/lib.h	Thu Dec  8 18:12:43 2016
+++ b/include/lib.h	Sat Dec 10 09:42:01 2016
@@ -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	Thu Dec  8 18:12:43 2016
+++ b/posix-386/tas.c	Sat Dec 10 09:42:01 2016
@@ -2,7 +2,7 @@
 #include "libc.h"
 
 int
-tas(long *x)
+tas(int *x)
 {
 	int     v;
 
--- a/posix-amd64/tas.c	Thu Dec  8 18:12:43 2016
+++ b/posix-amd64/tas.c	Sat Dec 10 09:42:01 2016
@@ -2,7 +2,7 @@
 #include "libc.h"
 
 int
-tas(long *x)
+tas(int *x)
 {
 	int     v;
 
--- a/posix-arm/tas.c	Thu Dec  8 18:12:43 2016
+++ b/posix-arm/tas.c	Sat Dec 10 09:42:01 2016
@@ -2,7 +2,7 @@
 #include "libc.h"
 
 int
-tas(long *x)
+tas(int *x)
 {
 	int     v, t, i = 1;
 
--- a/posix-power/tas.c	Thu Dec  8 18:12:43 2016
+++ b/posix-power/tas.c	Sat Dec 10 09:42:01 2016
@@ -6,7 +6,7 @@
  * r3 contains return value upon return.
  */
 int
-tas(long *x)
+tas(int *x)
 {
 	int     v;
 	/*
--- a/win32-386/tas.c	Thu Dec  8 18:12:43 2016
+++ b/win32-386/tas.c	Sat Dec 10 09:42:01 2016
@@ -2,7 +2,7 @@
 #include "libc.h"
 
 int
-tas(long *x)
+tas(int *x)
 {
 	int     v;