Changeset 03bd4ae in rtems for cpukit/pppd


Ignore:
Timestamp:
May 16, 2003, 8:57:09 AM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
1cd9dfc
Parents:
8f992428
Message:

2003-05-16 Ralf Corsepius <corsepiu@…>

  • pppd/magic.c: Remove *rand48.
  • pppd/chap.c: Remove prototypes of *rand48.
Location:
cpukit/pppd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/pppd/chap.c

    r8f992428 r03bd4ae  
    4242#include <stdio.h>
    4343#include <string.h>
     44#include <stdlib.h>     /* drand48, srand48 */
    4445#include <sys/types.h>
    4546#include <sys/time.h>
     
    115116static void ChapSendResponse __P((chap_state *));
    116117static void ChapGenChallenge __P((chap_state *));
    117 
    118 extern double drand48 __P((void));
    119 extern void srand48 __P((long));
    120118
    121119/*
  • cpukit/pppd/magic.c

    r8f992428 r03bd4ae  
    3131static const char rcsid[] = RCSID;
    3232
    33 extern long mrand48 __P((void));
    34 extern void srand48 __P((long));
    35 
    3633/*
    3734 * magic_init - Initialize the magic number generator.
     
    6057    return (u_int32_t) mrand48();
    6158}
    62 
    63 /*
    64  * Substitute procedures for those systems which don't have
    65  * drand48 et al.
    66  */
    67 
    68 double
    69 drand48()
    70 {
    71     return (double)rand() / (double)0x7fffffffL; /* 2**31-1 */
    72 }
    73 
    74 long
    75 mrand48()
    76 {
    77     return rand();
    78 }
    79 
    80 void
    81 srand48(seedval)
    82 long seedval;
    83 {
    84     srand((int)seedval);
    85 }
Note: See TracChangeset for help on using the changeset viewer.