FreeBSD Bugzilla – Attachment 9272 Details for
Bug 19044
Some games compare initscr() to ERR.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.18 KB, created by
dwmalone
on 2000-06-05 23:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
dwmalone
Created:
2000-06-05 23:30:01 UTC
Size:
1.18 KB
patch
obsolete
>Index: battlestar/fly.c >=================================================================== >RCS file: /cvs/FreeBSD-CVS/src/games/battlestar/fly.c,v >retrieving revision 1.6 >diff -u -r1.6 fly.c >--- battlestar/fly.c 1999/11/30 03:48:36 1.6 >+++ battlestar/fly.c 2000/06/05 22:03:25 >@@ -73,7 +73,7 @@ > void moveenemy(); > > destroyed = 0; >- if(initscr() == ERR){ >+ if(initscr() == NULL){ > puts("Whoops! No more memory..."); > return(0); > } >cvs diff: Diffing sail >Index: sail/player.h >=================================================================== >RCS file: /cvs/FreeBSD-CVS/src/games/sail/player.h,v >retrieving revision 1.2 >diff -u -r1.2 player.h >--- sail/player.h 1998/04/27 04:26:56 1.2 >+++ sail/player.h 2000/06/05 22:06:34 >@@ -91,9 +91,9 @@ > #define SLOT_R (SLOT_L+SLOT_X-1) > > #ifdef SIGTSTP >-#define SCREENTEST() (initscr() != ERR && signal(SIGTSTP, SIG_DFL) != BADSIG && STAT_R < COLS && SCROLL_Y > 0) >+#define SCREENTEST() (initscr() != NULL && signal(SIGTSTP, SIG_DFL) != BADSIG && STAT_R < COLS && SCROLL_Y > 0) > #else >-#define SCREENTEST() (initscr() != ERR && STAT_R < COLS && SCROLL_Y > 0) >+#define SCREENTEST() (initscr() != NULL && STAT_R < COLS && SCROLL_Y > 0) > #endif > > WINDOW *view_w;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19044
: 9272