declare variable at top of block; fixes build with gcc2
This commit is contained in:
parent
4af9d1d305
commit
2d1819f305
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2007/09/20 19:15:00 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2009/03/26 17:38:26 naddy Exp $
|
||||
|
||||
COMMENT= minimalist IRC client
|
||||
|
||||
DISTNAME= ii-1.3
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
CATEGORIES= net
|
||||
|
||||
HOMEPAGE= http://www.suckless.org/wiki/tools/irc
|
||||
|
14
net/ii/patches/patch-ii_c
Normal file
14
net/ii/patches/patch-ii_c
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-ii_c,v 1.1 2009/03/26 17:38:26 naddy Exp $
|
||||
--- ii.c.orig Thu Mar 26 11:22:40 2009
|
||||
+++ ii.c Thu Mar 26 11:23:00 2009
|
||||
@@ -394,8 +394,9 @@ static int read_line(int fd, size_t res_len, char *buf
|
||||
static void handle_channels_input(Channel *c) {
|
||||
static char buf[PIPE_BUF];
|
||||
if(read_line(c->fd, PIPE_BUF, buf) == -1) {
|
||||
+ int fd;
|
||||
close(c->fd);
|
||||
- int fd = open_channel(c->name);
|
||||
+ fd = open_channel(c->name);
|
||||
if(fd != -1)
|
||||
c->fd = fd;
|
||||
else
|
Loading…
Reference in New Issue
Block a user