OSDN Git Service

Supports Visual Studio 2010.
[kz-h8write/kz_h8write.git] / src / kz_h8write.c
index 13713a9..f0d09fb 100644 (file)
@@ -70,18 +70,6 @@ typedef struct {
     int error;                  /**< オプション指定エラー検出フラグ。 */
 } user_option_t;
 
-#define USER_OPTION_INITIALIZER \
-{ \
-    .cpu_name = "\0", \
-    .cpu_freq = 20, \
-    .mot_file = "\0", \
-    .serial_port = "\0", \
-    .version = 0, \
-    .help = 0, \
-    .debug = 0, \
-    .error = 0, \
-}
-
 #define USER_OPTION_CPU_NAME(P)     ((P)->cpu_name)
 #define USER_OPTION_CPU_FREQ(P)     ((P)->cpu_freq)
 #define USER_OPTION_MOT_FILE(P)     ((P)->mot_file)
@@ -670,7 +658,7 @@ int main(int argc, char **argv)
     SERIAL *serial = NULL;
     enum ErrorCode ec = NoError;
     uint32_t devcode = 0;
-    user_option_t user_option = USER_OPTION_INITIALIZER;
+    user_option_t user_option;
 
     /*
      * バナーを表示する。