From f8864ba9364e341cde0afddb7f73c70f13fdbbf9 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 8 Sep 1997 19:46:20 +0000 Subject: KNF --- sys/ddb/db_hangman.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'sys/ddb/db_hangman.c') diff --git a/sys/ddb/db_hangman.c b/sys/ddb/db_hangman.c index 8c8d55c5d1c..28fa5799298 100644 --- a/sys/ddb/db_hangman.c +++ b/sys/ddb/db_hangman.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_hangman.c,v 1.11 1997/07/19 22:31:17 niklas Exp $ */ +/* $OpenBSD: db_hangman.c,v 1.12 1997/09/08 19:46:19 deraadt Exp $ */ /* * Copyright (c) 1996 Theo de Raadt, Michael Shalayeff @@ -63,11 +63,11 @@ int db_hangon __P((void)); static int skill; static __inline size_t -db_random( mod ) +db_random(mod) register size_t mod; { size_t ret; - get_random_bytes(&ret, sizeof(ret) ); + get_random_bytes(&ret, sizeof(ret)); return ret % mod; } @@ -114,8 +114,7 @@ db_hang(tries, word, abc) register char *p; for(p=hangpic; *p; p++) { - if(*p>='0' && *p<='9') - { + if(*p>='0' && *p<='9') { if(tries<=(*p)-'0') cnputc(substchar[(*p)-'0']); else @@ -190,8 +189,7 @@ db_hangon(void) if (tries && len) return 1; - if (!tries && skill > 2) - { + if (!tries && skill > 2) { register char *p = word; for (; *p; p++) if (ISALPHA(*p)) @@ -205,7 +203,7 @@ db_hangon(void) } void -db_hangman( addr, haddr, count, modif) +db_hangman(addr, haddr, count, modif) db_expr_t addr; int haddr; db_expr_t count; -- cgit v1.2.3