Changeset b8a3af81 in rtems


Ignore:
Timestamp:
May 16, 2003, 8:54:09 AM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Children:
72cd8b2
Parents:
7bc0c85c
Message:

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

  • pppd/magic.c: Remove *rand48.
  • pppd/chap.c: Remove prototypes of *rand48.
Location:
c/src/libnetworking
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/libnetworking/ChangeLog

    r7bc0c85c rb8a3af81  
     12003-05-16      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * pppd/magic.c: Remove *rand48.
     4        * pppd/chap.c: Remove prototypes of *rand48.
     5
    162003-03-18      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    27
  • c/src/libnetworking/pppd/chap.c

    r7bc0c85c rb8a3af81  
    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/*
  • c/src/libnetworking/pppd/magic.c

    r7bc0c85c rb8a3af81  
    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.