Symbol: penalty
crypto/openssh/srclimit.c
199
penalty_addr_cmp(struct penalty *a, struct penalty *b)
crypto/openssh/srclimit.c
206
penalty_expiry_cmp(struct penalty *a, struct penalty *b)
crypto/openssh/srclimit.c
219
struct penalty *penalty, *tmp;
crypto/openssh/srclimit.c
222
RB_FOREACH_SAFE(penalty, penalties_by_expiry, by_expiry, tmp) {
crypto/openssh/srclimit.c
223
if (penalty->expiry >= now)
crypto/openssh/srclimit.c
226
penalty) != penalty ||
crypto/openssh/srclimit.c
228
penalty) != penalty)
crypto/openssh/srclimit.c
230
free(penalty);
crypto/openssh/srclimit.c
262
struct penalty find, *penalty;
crypto/openssh/srclimit.c
298
if ((penalty = RB_FIND(penalties_by_addr, by_addr, &find)) == NULL)
crypto/openssh/srclimit.c
300
if (penalty->expiry < now) {
crypto/openssh/srclimit.c
304
if (!penalty->active)
crypto/openssh/srclimit.c
306
*reason = penalty->reason;
crypto/openssh/srclimit.c
315
struct penalty *p = NULL;
crypto/openssh/srclimit.c
349
struct penalty *penalty = NULL, *existing = NULL;
crypto/openssh/srclimit.c
415
penalty = xcalloc(1, sizeof(*penalty));
crypto/openssh/srclimit.c
416
penalty->addr = masked;
crypto/openssh/srclimit.c
417
penalty->expiry = now + penalty_secs;
crypto/openssh/srclimit.c
418
penalty->reason = reason;
crypto/openssh/srclimit.c
420
penalty)) == NULL) {
crypto/openssh/srclimit.c
423
penalty->active = 1;
crypto/openssh/srclimit.c
424
if (RB_INSERT(penalties_by_expiry, by_expiry, penalty) != NULL)
crypto/openssh/srclimit.c
427
addrnetmask, penalty->active ? "active" : "deferred",
crypto/openssh/srclimit.c
450
existing->reason = penalty->reason;
crypto/openssh/srclimit.c
451
free(penalty);
crypto/openssh/srclimit.c
452
penalty = NULL;
crypto/openssh/srclimit.c
462
struct penalty *p = NULL;
crypto/openssh/srclimit.c
59
RB_ENTRY(penalty) by_addr;
crypto/openssh/srclimit.c
60
RB_ENTRY(penalty) by_expiry;
crypto/openssh/srclimit.c
62
static int penalty_addr_cmp(struct penalty *a, struct penalty *b);
crypto/openssh/srclimit.c
63
static int penalty_expiry_cmp(struct penalty *a, struct penalty *b);
crypto/openssh/srclimit.c
64
RB_HEAD(penalties_by_addr, penalty) penalties_by_addr4, penalties_by_addr6;
crypto/openssh/srclimit.c
65
RB_HEAD(penalties_by_expiry, penalty) penalties_by_expiry4, penalties_by_expiry6;
crypto/openssh/srclimit.c
66
RB_GENERATE_STATIC(penalties_by_addr, penalty, by_addr, penalty_addr_cmp)
crypto/openssh/srclimit.c
67
RB_GENERATE_STATIC(penalties_by_expiry, penalty, by_expiry, penalty_expiry_cmp)
games/arithmetic/arithmetic.c
281
static int penalty[sizeof(keylist) - 1][2];
games/arithmetic/arithmetic.c
283
int value, penalty; /* Penalised value and its penalty. */
games/arithmetic/arithmetic.c
284
struct penalty *next;
games/arithmetic/arithmetic.c
297
struct penalty *p;
games/arithmetic/arithmetic.c
304
penalty[op][operand] += p->penalty = WRONGPENALTY;
games/arithmetic/arithmetic.c
318
struct penalty **pp, *p;
games/arithmetic/arithmetic.c
321
value = random() % (maxval + penalty[op][operand]);
games/arithmetic/arithmetic.c
336
if (p->penalty > value) {
games/arithmetic/arithmetic.c
338
penalty[op][operand]--;
games/arithmetic/arithmetic.c
339
if (--(p->penalty) <= 0) {
games/arithmetic/arithmetic.c
346
value -= p->penalty;
games/snake/snake/snake.c
178
penalty = loot = 0;
games/snake/snake/snake.c
63
#define cashvalue chunk*(loot-penalty)/25
games/snake/snake/snake.c
661
loot = loot - penalty;
games/snake/snake/snake.c
662
penalty = 0;
games/snake/snake/snake.c
665
penalty += loot / PENALTY;
games/snake/snake/snake.c
856
if (loot >= penalty) {
games/snake/snake/snake.c
95
int loot, penalty;