Ignore:
Timestamp:
01/06/98 15:47:37 (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
35a1ec9
Parents:
b2225d7
Message:

Changed initial settings of first time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/src/termios.c

    rb2225d7 r2872e0b  
    120120 *  Reserve enough resources to open every physical device once.
    121121 */
     122
     123static int first_time;   /* assumed to be zeroed by BSS initialization */
     124
    122125void
    123126rtems_termios_reserve_resources (
     
    126129  )
    127130{
    128         static int first_time = 1;
    129131        rtems_api_configuration_table *rtems_config;
    130132
     
    134136        if (!rtems_config)
    135137                rtems_fatal_error_occurred (0xFFF0F002);
    136         if (first_time)
     138        if (!first_time)
    137139                rtems_config->maximum_semaphores += 1;
    138         first_time = 0;
     140        first_time = 1;
    139141        rtems_config->maximum_semaphores += (4 * number_of_devices);
    140142}
Note: See TracChangeset for help on using the changeset viewer.