Skip to content

Commit

Permalink
sound: oss: avoid time_t usage
Browse files Browse the repository at this point in the history
We want to remove all time_t users from the kernel because of
y2038 compatibility. This particular instance does not even
use time_t to store a seconds value, so we can simply use
'unsigned int', which seems more fitting anywhere.

The same code is used in two OSS files.

Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
arndb authored and tiwai committed Jun 17, 2016
1 parent 960a581 commit cfecf1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sound/oss/sound_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "sound_config.h"

static volatile int initialized, opened, tmr_running;
static volatile time_t tmr_offs, tmr_ctr;
static volatile unsigned int tmr_offs, tmr_ctr;
static volatile unsigned long ticks_offs;
static volatile int curr_tempo, curr_timebase;
static volatile unsigned long curr_ticks;
Expand Down
2 changes: 1 addition & 1 deletion sound/oss/sys_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "sound_config.h"

static volatile int opened, tmr_running;
static volatile time_t tmr_offs, tmr_ctr;
static volatile unsigned int tmr_offs, tmr_ctr;
static volatile unsigned long ticks_offs;
static volatile int curr_tempo, curr_timebase;
static volatile unsigned long curr_ticks;
Expand Down

0 comments on commit cfecf1a

Please sign in to comment.