Ticket #2056: 0001-PR2056-libqos-conversion-from-uint32_t-to-time_t.patch

File 0001-PR2056-libqos-conversion-from-uint32_t-to-time_t.patch, 882 bytes (added by Gedare Bloom, on 04/23/12 at 12:58:51)

fix qres_params_t

  • cpukit/libqos/qreslib.h

    From 7fc31ca8359f0a397887c0947cd1f4a02cb97362 Mon Sep 17 00:00:00 2001
    From: Gedare Bloom <gedare@rtems.org>
    Date: Mon, 23 Apr 2012 09:56:14 -0400
    Subject: [PATCH] PR2056: libqos conversion from uint32_t to time_t
    
    AquosA defines qres_params_t using qres_time_t so we should also.
    This fixes an invalid conversion from uint32_t into time_t as well.
    ---
     cpukit/libqos/qreslib.h |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/cpukit/libqos/qreslib.h b/cpukit/libqos/qreslib.h
    index 59bbbc3..ce1f746 100644
    a b typedef time_t qres_atime_t; 
    6666/** Server parameters. */
    6767typedef struct {
    6868  /** Relative deadline of the server. */
    69   uint32_t P;
     69  qres_time_t P;
    7070  /** Budget (computation time) of the server. */
    71   uint32_t Q;
     71  qres_time_t Q;
    7272} qres_params_t;
    7373
    7474/**