Bez tytułu

z Obese Rhinoceros, 6 miesiące temu, napisane w Plain Text, wyświetlone 67 razy. [paste_expire] 4 miesiące.
URL https://pastebin.k4be.pl/view/edec520c Udostępnij
Pobierz wklejkę lub Pokaż surowy tekst
  1. listrestrict.c: In function ‘listrestrict_overridejoin’:
  2. listrestrict.c:284:20: error: wrong type argument to unary exclamation mark
  3.   if(!fchanEntry || !fchanEntry->banact) {
  4.                     ^
  5. listrestrict.c:299:3: warning: implicit declaration of function ‘place_host_ban’ [-Wimplicit-function-declaration]
  6.    place_host_ban(client, fchanEntry->banact, "Invalid channel", muhcfg.ban_time);
  7.    ^~~~~~~~~~~~~~
  8. listrestrict.c: In function ‘listrestrict_configtest’:
  9. listrestrict.c:471:13: error: incompatible types when assigning to type ‘BanAction’ {aka ‘struct BanAction’} from type ‘BanActionValue’ {aka ‘enum BanActionValue’}
  10.       banact = banact_stringtoval(cep2->value);
  11.              ^
  12. listrestrict.c:472:9: error: wrong type argument to unary exclamation mark
  13.       if(!banact) {
  14.          ^
  15. In file included from /home/ircd/unrealircd-6.1.2.3/include/unrealircd.h:7,
  16.                  from listrestrict.c:25:
  17. /home/ircd/unrealircd-6.1.2.3/include/struct.h:1206:34: error: invalid operands to binary == (have ‘BanAction’ {aka ‘struct BanAction’} and ‘int’)
  18.  #define IsSoftBanAction(x)   ((x == BAN_ACT_SOFT_GLINE) || (x == BAN_ACT_SOFT_KLINE) || \
  19.                                   ^~
  20. listrestrict.c:478:9: note: in expansion of macro ‘IsSoftBanAction’
  21.       if(IsSoftBanAction(banact) || banact == BAN_ACT_WARN) {
  22.          ^~~~~~~~~~~~~~~
  23. /home/ircd/unrealircd-6.1.2.3/include/struct.h:1206:63: error: invalid operands to binary == (have ‘BanAction’ {aka ‘struct BanAction’} and ‘int’)
  24.  #define IsSoftBanAction(x)   ((x == BAN_ACT_SOFT_GLINE) || (x == BAN_ACT_SOFT_KLINE) || \
  25.                                                                ^~
  26. listrestrict.c:478:9: note: in expansion of macro ‘IsSoftBanAction’
  27.       if(IsSoftBanAction(banact) || banact == BAN_ACT_WARN) {
  28.          ^~~~~~~~~~~~~~~
  29. /home/ircd/unrealircd-6.1.2.3/include/struct.h:1207:34: error: invalid operands to binary == (have ‘BanAction’ {aka ‘struct BanAction’} and ‘int’)
  30.                                (x == BAN_ACT_SOFT_SHUN) || (x == BAN_ACT_SOFT_KILL) || \
  31.                                   ^~
  32. listrestrict.c:478:9: note: in expansion of macro ‘IsSoftBanAction’
  33.       if(IsSoftBanAction(banact) || banact == BAN_ACT_WARN) {
  34.          ^~~~~~~~~~~~~~~
  35. /home/ircd/unrealircd-6.1.2.3/include/struct.h:1207:62: error: invalid operands to binary == (have ‘BanAction’ {aka ‘struct BanAction’} and ‘int’)
  36.                                (x == BAN_ACT_SOFT_SHUN) || (x == BAN_ACT_SOFT_KILL) || \
  37.                                                               ^~
  38. listrestrict.c:478:9: note: in expansion of macro ‘IsSoftBanAction’
  39.       if(IsSoftBanAction(banact) || banact == BAN_ACT_WARN) {
  40.          ^~~~~~~~~~~~~~~
  41. /home/ircd/unrealircd-6.1.2.3/include/struct.h:1208:34: error: invalid operands to binary == (have ‘BanAction’ {aka ‘struct BanAction’} and ‘int’)
  42.                                (x == BAN_ACT_SOFT_TEMPSHUN) || (x == BAN_ACT_SOFT_VIRUSCHAN) || \
  43.                                   ^~
  44. listrestrict.c:478:9: note: in expansion of macro ‘IsSoftBanAction’
  45.       if(IsSoftBanAction(banact) || banact == BAN_ACT_WARN) {
  46.          ^~~~~~~~~~~~~~~
  47. /home/ircd/unrealircd-6.1.2.3/include/struct.h:1208:66: error: invalid operands to binary == (have ‘BanAction’ {aka ‘struct BanAction’} and ‘int’)
  48.                                (x == BAN_ACT_SOFT_TEMPSHUN) || (x == BAN_ACT_SOFT_VIRUSCHAN) || \
  49.                                                                   ^~
  50. listrestrict.c:478:9: note: in expansion of macro ‘IsSoftBanAction’
  51.       if(IsSoftBanAction(banact) || banact == BAN_ACT_WARN) {
  52.          ^~~~~~~~~~~~~~~
  53. /home/ircd/unrealircd-6.1.2.3/include/struct.h:1209:34: error: invalid operands to binary == (have ‘BanAction’ {aka ‘struct BanAction’} and ‘int’)
  54.                                (x == BAN_ACT_SOFT_DCCBLOCK) || (x == BAN_ACT_SOFT_BLOCK) || \
  55.                                   ^~
  56. listrestrict.c:478:9: note: in expansion of macro ‘IsSoftBanAction’
  57.       if(IsSoftBanAction(banact) || banact == BAN_ACT_WARN) {
  58.          ^~~~~~~~~~~~~~~
  59. /home/ircd/unrealircd-6.1.2.3/include/struct.h:1209:66: error: invalid operands to binary == (have ‘BanAction’ {aka ‘struct BanAction’} and ‘int’)
  60.                                (x == BAN_ACT_SOFT_DCCBLOCK) || (x == BAN_ACT_SOFT_BLOCK) || \
  61.                                                                   ^~
  62. listrestrict.c:478:9: note: in expansion of macro ‘IsSoftBanAction’
  63.       if(IsSoftBanAction(banact) || banact == BAN_ACT_WARN) {
  64.          ^~~~~~~~~~~~~~~
  65. /home/ircd/unrealircd-6.1.2.3/include/struct.h:1210:34: error: invalid operands to binary == (have ‘BanAction’ {aka ‘struct BanAction’} and ‘int’)
  66.                                (x == BAN_ACT_SOFT_WARN))
  67.                                   ^~
  68. listrestrict.c:478:9: note: in expansion of macro ‘IsSoftBanAction’
  69.       if(IsSoftBanAction(banact) || banact == BAN_ACT_WARN) {
  70.          ^~~~~~~~~~~~~~~
  71. listrestrict.c:478:43: error: invalid operands to binary == (have ‘BanAction’ {aka ‘struct BanAction’} and ‘int’)
  72.       if(IsSoftBanAction(banact) || banact == BAN_ACT_WARN) {
  73.                                            ^~
  74. listrestrict.c: In function ‘listrestrict_configrun’:
  75. listrestrict.c:616:16: error: incompatible types when assigning to type ‘BanAction’ {aka ‘struct BanAction’} from type ‘int’
  76.     fchanBanact = 0;
  77.                 ^
  78. listrestrict.c:644:18: error: incompatible types when assigning to type ‘BanAction’ {aka ‘struct BanAction’} from type ‘BanActionValue’ {aka ‘enum BanActionValue’}
  79.       fchanBanact = banact_stringtoval(cep2->value);
  80.                   ^
  81. make[5]: *** [Makefile:46: custommodule] Error 1
  82.  

odpowiedź "Bez tytułu"

Tutaj możesz odpowiedzieć na wklejkę z góry

captcha