1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
$NetBSD: patch-ae,v 1.3 2002/07/19 05:22:52 mycroft Exp $
--- src/common/perl.c.orig Fri Jul 19 05:14:48 2002
+++ src/common/perl.c Fri Jul 19 05:15:59 2002
@@ -256,7 +256,8 @@
execute_perl (char *function, char *args)
{
char *perl_args[2] = { args, NULL }, buf[512];
- int count, ret_value = 1;
+ int ret_value = 1;
+ STRLEN count;
SV *sv;
dSP;
@@ -273,7 +274,7 @@
POPs;
} else if (count != 1) {
snprintf(buf, 512, "Perl error: expected 1 value from %s, "
- "got: %d\n", function, count);
+ "got: %ld\n", function, (long)count);
PrintText(perl_sess, buf);
} else {
ret_value = POPi;
@@ -656,7 +657,7 @@
static XS (XS_IRC_register)
{
char *name, *ver, *callback, *unused;
- int junk;
+ STRLEN junk;
struct perlscript *scp;
dXSARGS;
@@ -680,7 +681,7 @@
/* IRC::main_print(output) */
static XS (XS_IRC_print)
{
- int junk;
+ STRLEN junk;
int i;
char *output;
dXSARGS;
@@ -706,7 +707,7 @@
static XS (XS_IRC_print_with_channel)
{
- int junk;
+ STRLEN junk;
char *output;
struct session *sess;
GSList *list = sess_list;
@@ -784,7 +785,7 @@
/* IRC::get_prefs(var) */
static XS (XS_IRC_get_prefs)
{
- int junk;
+ STRLEN junk;
char *var;
int i = 0;
dXSARGS;
@@ -827,7 +828,7 @@
/* IRC::add_message_handler(message_type, handler_name) */
static XS (XS_IRC_add_message_handler)
{
- int junk;
+ STRLEN junk;
struct _perl_inbound_handlers *handler;
dXSARGS;
@@ -842,7 +843,7 @@
/* IRC::add_command_handler(command_name, handler_name) */
static XS (XS_IRC_add_command_handler)
{
- int junk;
+ STRLEN junk;
struct _perl_command_handlers *handler;
dXSARGS;
@@ -857,7 +858,7 @@
/* IRC::add_print_handler(print_name, handler_name) */
static XS (XS_IRC_add_print_handler)
{
- int junk;
+ STRLEN junk;
struct _perl_print_handlers *handler;
dXSARGS;
@@ -870,7 +871,7 @@
static XS (XS_IRC_add_timeout_handler)
{
- int junk;
+ STRLEN junk;
struct _perl_timeout_handlers *handler;
dXSARGS;
@@ -886,7 +887,7 @@
static XS (XS_IRC_send_raw)
{
char *data;
- int junk;
+ STRLEN junk;
dXSARGS;
if (perl_sess)
@@ -1033,7 +1034,7 @@
static XS (XS_IRC_user_info)
{
- int junk;
+ STRLEN junk;
struct User *user;
char *nick;
dXSARGS;
@@ -1065,7 +1066,7 @@
*/
static XS (XS_IRC_add_user_list)
{
- int junk;
+ STRLEN junk;
char *ul_channel;
char *ul_server;
char *nick;
@@ -1104,7 +1105,7 @@
*/
static XS (XS_IRC_sub_user_list)
{
- int junk;
+ STRLEN junk;
char *channel;
char *server;
char *nick;
@@ -1135,7 +1136,7 @@
*/
static XS (XS_IRC_clear_user_list)
{
- int junk;
+ STRLEN junk;
char *channel, *server;
struct session *sess;
GSList *list = sess_list;
@@ -1170,7 +1171,8 @@
struct session *sess;
char *channel, *server;
GSList *list = sess_list;
- int i = 0, junk;
+ int i = 0;
+ STRLEN junk;
int MinStk = 10;
dXSARGS;
@@ -1267,7 +1269,7 @@
static XS (XS_IRC_command)
{
char *command;
- int junk;
+ STRLEN junk;
dXSARGS;
if (perl_sess)
@@ -1284,7 +1286,7 @@
GSList *list = serv_list;
struct server *serv;
char *server, *command;
- int junk;
+ STRLEN junk;
dXSARGS;
server = strdup (SvPV (ST (1), junk));
@@ -1338,7 +1340,8 @@
struct session *sess;
char *channel, *server;
GSList *list = sess_list;
- int i = 0, junk;
+ int i = 0;
+ STRLEN junk;
int MinStk = 10;
dXSARGS;
|