changeset 10858:da9311e7f5fc

warning fix (missing C initializers)
author pl
date Fri, 12 Sep 2003 15:55:45 +0000
parents 608666e629b2
children 12e04913ba25
files libmpdemux/demux_ty_osd.c
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ty_osd.c	Fri Sep 12 15:54:28 2003 +0000
+++ b/libmpdemux/demux_ty_osd.c	Fri Sep 12 15:55:45 2003 +0000
@@ -779,15 +779,15 @@
 #define DST               ( ( TY_XDS[ 3 ][ 4 ][ 0 ] & 0x20 ) >> 5 )
                struct tm tm = 
                {
-                  0,                                 // sec
-                  ( TY_XDS_ptr[ 0 ] & 0x3F ),        // min
-                  ( TY_XDS_ptr[ 1 ] & 0x1F ),        // hour
-                  ( TY_XDS_ptr[ 2 ] & 0x1F ),        // day
-                  ( TY_XDS_ptr[ 3 ] & 0x1f ) - 1,    // month
-                  ( TY_XDS_ptr[ 5 ] & 0x3f ) + 90,   // year
-                  0,                                 // day of week
-                  0,                                 // day of year
-                  0,                                 // DST
+                  .tm_sec = 0,                                // sec
+                  .tm_min = ( TY_XDS_ptr[ 0 ] & 0x3F ),       // min
+                  .tm_hour = ( TY_XDS_ptr[ 1 ] & 0x1F ),      // hour
+                  .tm_mday = ( TY_XDS_ptr[ 2 ] & 0x1F ),      // day
+                  .tm_mon = ( TY_XDS_ptr[ 3 ] & 0x1f ) - 1,   // month
+                  .tm_year = ( TY_XDS_ptr[ 5 ] & 0x3f ) + 90, // year
+                  .tm_wday = 0,                               // day of week
+                  .tm_yday = 0,                               // day of year
+                  .tm_isdst = 0,                              // DST
                };
 
                time_t time_t = mktime( &tm );