commit - e8e04b4c8fd63d075ffa6b85327c4b90d7005051
commit + c8162a80beba80f3b1d04fdba8e74bf5366c47f7
blob - e211d1841cc1167719bbd19dcc936d9d091f7ffb
blob + 6956776914ada5fe974c70fc52003d2bc3ef08ec
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
* the calculation of in_p and out_p: in_z_k and out_z_k
* are non-zero, that's guaranteed by the protocol until
* compression can be enabled. */
- if (! in_z_k)
+ if (in_z_k <= 0)
in_z_k = in_k;
- if (! out_z_k)
+ if (out_z_k <= 0)
out_z_k = out_k;
in_p = (int)(( in_k * 100 ) / in_z_k );
out_p = (int)(( out_k * 100 ) / out_z_k );
blob - 2a0a8fa5c2ffab0d40508f5fdfd984847c2c6b1b
blob + 846b10d6e8aa2f08951c393f545aba0deb8ae331
--- src/ngircd/irc-login.c
+++ src/ngircd/irc-login.c
/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2015 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2018 Alexander Barton (alex@barton.de) and Contributors.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/* Protocol version */
if (Req->argc >= 2 && strlen(Req->argv[1]) >= 4) {
- int c2, c4;
+ char c2, c4;
c2 = Req->argv[1][2];
c4 = Req->argv[1][4];
blob - b00e235eb739039f8d6d66a519689cb7d299308e
blob + 35c1ee67253302831e90314ac2c9c8ce02f5e82a
--- src/tool/tool.c
+++ src/tool/tool.c
/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2018 Alexander Barton (alex@barton.de) and Contributors.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
ptr = String;
while(*ptr) {
- *ptr = toupper((int)*ptr);
+ *ptr = (char)toupper(*ptr);
ptr++;
}
return String;
ptr = String;
while(*ptr) {
- *ptr = tolower((int)*ptr);
+ *ptr = (char)tolower(*ptr);
ptr++;
}
return String;