* Fixed fortuntes path, closing ticket #5028.
* Automatic whitespace cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34208 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -26,9 +26,9 @@
|
|||||||
#define MAX_FAILS_BEFORE_BSOD 0
|
#define MAX_FAILS_BEFORE_BSOD 0
|
||||||
|
|
||||||
#ifdef __HAIKU__
|
#ifdef __HAIKU__
|
||||||
#define FORTUNE_FILE "/etc/fortunes/Fortunes"
|
# define FORTUNE_FILE "/boot/system/data/fortunes/Fortunes"
|
||||||
#else
|
#else
|
||||||
#define FORTUNE_FILE "/etc/fortunes/default"
|
# define FORTUNE_FILE "/etc/fortunes/default"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define KCMD_HELP "A funny KDL hangman game :-)"
|
#define KCMD_HELP "A funny KDL hangman game :-)"
|
||||||
@@ -68,7 +68,7 @@ static char hungman_ansi[] = \
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// for gets,
|
// for gets,
|
||||||
#define BIGBUFFSZ 128
|
#define BIGBUFFSZ 128
|
||||||
char bigbuffer[BIGBUFFSZ];
|
char bigbuffer[BIGBUFFSZ];
|
||||||
|
|
||||||
@@ -169,7 +169,7 @@ init_words(char *from)
|
|||||||
void
|
void
|
||||||
print_hangman(int fails)
|
print_hangman(int fails)
|
||||||
{
|
{
|
||||||
PRINTF(HUNGMAN,
|
PRINTF(HUNGMAN,
|
||||||
(fails > 0)?'O':' ',
|
(fails > 0)?'O':' ',
|
||||||
(fails > 2)?'/':' ',
|
(fails > 2)?'/':' ',
|
||||||
(fails > 1)?'|':' ',
|
(fails > 1)?'|':' ',
|
||||||
@@ -336,7 +336,7 @@ status_t
|
|||||||
init_driver(void)
|
init_driver(void)
|
||||||
{
|
{
|
||||||
status_t err;
|
status_t err;
|
||||||
|
|
||||||
err = init_words(FORTUNE_FILE);
|
err = init_words(FORTUNE_FILE);
|
||||||
if (err < B_OK) {
|
if (err < B_OK) {
|
||||||
dprintf("hangman: error reading fortune file: %s\n", strerror(err));
|
dprintf("hangman: error reading fortune file: %s\n", strerror(err));
|
||||||
@@ -412,7 +412,7 @@ khangman_write(void *cookie, off_t position, const void *data, size_t *numbytes)
|
|||||||
bsod_saved_kgets = bsod_kgets;
|
bsod_saved_kgets = bsod_kgets;
|
||||||
bsod_kgets = bsod_wrapper_gets;
|
bsod_kgets = bsod_wrapper_gets;
|
||||||
kernel_debugger("So much more fun in KDL...");
|
kernel_debugger("So much more fun in KDL...");
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -478,7 +478,7 @@ static struct debugger_module_info sModuleInfo = {
|
|||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
module_info *modules[] = {
|
module_info *modules[] = {
|
||||||
(module_info *)&sModuleInfo,
|
(module_info *)&sModuleInfo,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user