Use ARRAY_SIZE()
[fio.git] / gfio.c
diff --git a/gfio.c b/gfio.c
index 9ccf78c423b22df655f874682918c0a2819a2f61..9c917cb6a955f167738fa5ab8dbbb32bf82a3703 100644 (file)
--- a/gfio.c
+++ b/gfio.c
@@ -1271,7 +1271,7 @@ static GtkActionEntry menu_items[] = {
        { "Quit", GTK_STOCK_QUIT, NULL,   "<Control>Q", NULL, G_CALLBACK(quit_clicked) },
        { "About", GTK_STOCK_ABOUT, NULL,  NULL, NULL, G_CALLBACK(about_dialog) },
 };
-static gint nmenu_items = sizeof(menu_items) / sizeof(menu_items[0]);
+static gint nmenu_items = ARRAY_SIZE(menu_items);
 
 static const gchar *ui_string = " \
        <ui> \