Ignore:
Timestamp:
Dec 5, 2012, 5:29:46 PM (9 years ago)
Author:
jordan
Message:

Follow more common whitespace style conventions in the C code (libtransmission, daemon, utils, cli, gtk).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/history.h

    r12328 r13625  
    33 *
    44 * This file is licensed by the GPL version 2. Works owned by the
    5  * Transmission project are granted a special exemption to clause 2(b)
     5 * Transmission project are granted a special exemption to clause 2 (b)
    66 * so that the bulk of its code can remain under the MIT license.
    77 * This exemption does not extend to derived works not owned by
     
    2828enum
    2929{
    30     TR_RECENT_HISTORY_PERIOD_SEC = 60
     30  TR_RECENT_HISTORY_PERIOD_SEC = 60
    3131};
    3232
     
    3434typedef struct tr_recentHistory
    3535{
    36     /* these are PRIVATE IMPLEMENTATION details included for composition only.
    37      * Don't access these directly! */
     36  /* these are PRIVATE IMPLEMENTATION details included for composition only.
     37   * Don't access these directly! */
    3838
    39     int newest;
     39  int newest;
    4040
    41     struct {
    42         unsigned int n;
    43         time_t date;
    44     } slices[TR_RECENT_HISTORY_PERIOD_SEC];
     41  struct {
     42    unsigned int n;
     43    time_t date;
     44  } slices[TR_RECENT_HISTORY_PERIOD_SEC];
    4545}
    4646tr_recentHistory;
     
    4848/**
    4949 * @brief add a counter to the recent history object.
    50  * @param when the current time in sec, such as from tr_time()
     50 * @param when the current time in sec, such as from tr_time ()
    5151 * @param n how many items to add to the history's counter
    5252 */
    53 void tr_historyAdd( tr_recentHistory *, time_t when, unsigned int n );
     53void tr_historyAdd (tr_recentHistory *, time_t when, unsigned int n);
    5454
    5555/**
    5656 * @brief count how many events have occurred in the last N seconds.
    57  * @param when the current time in sec, such as from tr_time()
     57 * @param when the current time in sec, such as from tr_time ()
    5858 * @param seconds how many seconds to count back through.
    5959 */
    60 unsigned int tr_historyGet( const tr_recentHistory *, time_t when, unsigned int seconds );
     60unsigned int tr_historyGet (const tr_recentHistory *, time_t when, unsigned int seconds);
    6161
    6262#endif
Note: See TracChangeset for help on using the changeset viewer.