Project

General

Profile

Bug #452 ยป bip-452.patch

Pavel Lishin, 2015-06-04 03:58

View differences:

.gitignore
1
# Automake-generated files
2
Makefile
3
Makefile.in
4
aclocal.m4
5
autom4te.cache
6
compile
7
config.log
8
config.status
9
configure
10
depcomp
11
install-sh
12
missing
13
src/.deps/
14
src/.dirstamp
15
src/conf.c
16
src/conf.h
17
src/conf.o
18
src/config.h
19
src/config.h.in
20
src/lex.c
21
src/lex.o
22
src/stamp-h1
23
ylwrap
INSTALL
26 26
The simplest way to compile this package is:
27 27

  
28 28
  1. `cd' to the directory containing the package's source code and type
29
     `./configure' to configure the package for your system.  If you're
30
     using `csh' on an old version of System V, you might need to type
29
     `aclocal && autoheader && autoreconf --install' to generate the
30
     configure file.
31

  
32
  2. Type `./configure' to configure the package for your system.  If
33
     you're using `csh' on an old version of System V, you might need to type
31 34
     `sh ./configure' instead to prevent `csh' from trying to execute
32 35
     `configure' itself.
33 36

  
......
39 42
  3. Optionally, type `make check' to run any self-tests that come with
40 43
     the package.
41 44

  
45
     (If you get an error that looks like this:
46

  
47
        src/connection.c: In function 'tmp_dh_cb':
48
        src/connection.c:1121:22: error: unused parameter 'ssl_unused' [-Werror=unused-parameter]
49
        cc1: all warnings being treated as errors
50
        make[1]: *** [src/connection.o] Error 1
51

  
52
    install autoconf-archive.)
53

  
42 54
  4. Type `make install' to install the programs and any data files and
43 55
     documentation.
44 56

  
45
- 
.gitignore
14 14
src/.dirstamp
15 15
src/conf.c
16 16
src/conf.h
17
src/conf.o
18 17
src/config.h
19 18
src/config.h.in
20 19
src/lex.c
21
src/lex.o
22 20
src/stamp-h1
23 21
ylwrap
22

  
23
# Generated object files
24
src/*.o
25

  
26
# Generated binaries
27
src/bip
28
src/bipmkpw
24
- 
src/bip.c
1312 1312
	else
1313 1313
		pid = getpid();
1314 1314
	snprintf(buf, 29, "%ld\n", (long unsigned int)pid);
1315
	write(fd, buf, strlen(buf));
1315
	UNUSED(int bytes_written) = write(fd, buf, strlen(buf));
1316 1316
	close(fd);
1317 1317

  
1318 1318
	bip.listener = listen_new(conf_ip, conf_port, conf_css);
src/bipmkpw.c
48 48
		exit(1);
49 49
	}
50 50

  
51
	write(ttyfd, "Password: ", 10);
51
	UNUSED(int bytes_written) = write(ttyfd, "Password: ", 10);
52 52

  
53 53
	int idx = 0;
54 54
	int valid = 1;
55 55
	while (idx < buflen) {
56
		read(ttyfd, buffer+idx, 1);
56
		UNUSED(int bytes_read) = read(ttyfd, buffer+idx, 1);
57 57
		if (buffer[idx] == '\n') {
58 58
			buffer[idx] = 0;
59 59
			break;
......
63 63
		idx++;
64 64
	}
65 65

  
66
	write(ttyfd, "\n", 1);
66
	bytes_written = write(ttyfd, "\n", 1);
67 67

  
68 68
	tcsetattr(ttyfd, TCSANOW, &ttback);
69 69
	close(ttyfd);
src/irc.c
1658 1658
					ret = irc_mode_channel(server, channel, line, mode, add,
1659 1659
							cur_arg);
1660 1660
				}
1661

  
1662
				if (ret == ERR_PROTOCOL)
1663
					return ret;
1661 1664
			}
1662 1665
		}
1663
		if (ret == ERR_PROTOCOL)
1664
			return ret;
1665 1666
	}
1666 1667
	return OK_COPY;
1667 1668
}
1668
- 
    (1-1/1)