remove the code to silence lint
Warning facilities on recent compilers are incredibly improved, so the code to silence "good-old" lint is much less sense.
This commit is contained in:
10
src/rnd.c
10
src/rnd.c
@@ -73,17 +73,12 @@ rn2_on_display_rng(register int x)
|
||||
#else /* USE_ISAAC64 */
|
||||
|
||||
/* "Rand()"s definition is determined by [OS]conf.h */
|
||||
#if defined(LINT) && defined(UNIX) /* rand() is long... */
|
||||
extern int rand(void);
|
||||
#define RND(x) (rand() % x)
|
||||
#else /* LINT */
|
||||
#if defined(UNIX) || defined(RANDOM)
|
||||
#define RND(x) ((int) (Rand() % (long) (x)))
|
||||
#else
|
||||
/* Good luck: the bottom order bits are cyclic. */
|
||||
#define RND(x) ((int) ((Rand() >> 3) % (x)))
|
||||
#endif
|
||||
#endif /* LINT */
|
||||
int
|
||||
rn2_on_display_rng(register int x)
|
||||
{
|
||||
@@ -216,13 +211,8 @@ rne(register int x)
|
||||
int
|
||||
rnz(int i)
|
||||
{
|
||||
#ifdef LINT
|
||||
int x = i;
|
||||
int tmp = 1000;
|
||||
#else
|
||||
register long x = (long) i;
|
||||
register long tmp = 1000L;
|
||||
#endif
|
||||
|
||||
tmp += rn2(1000);
|
||||
tmp *= rne(4);
|
||||
|
||||
Reference in New Issue
Block a user