projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
engines/windowsaio: style fixups
[fio.git]
/
goptions.c
diff --git
a/goptions.c
b/goptions.c
index 9279b22f946c434441c899dcc6727f8a588d78e5..16938eda141641b298434a626498dd087ff60752 100644
(file)
--- a/
goptions.c
+++ b/
goptions.c
@@
-11,6
+11,7
@@
#include "ghelpers.h"
#include "gerror.h"
#include "parse.h"
#include "ghelpers.h"
#include "gerror.h"
#include "parse.h"
+#include "optgroup.h"
struct gopt {
GtkWidget *box;
struct gopt {
GtkWidget *box;
@@
-95,7
+96,7
@@
static GtkWidget *gopt_get_group_frame(struct gopt_job_view *gjv,
GtkWidget *box, uint64_t groupmask)
{
uint64_t mask, group;
GtkWidget *box, uint64_t groupmask)
{
uint64_t mask, group;
- struct opt_group *og;
+
const
struct opt_group *og;
GtkWidget *frame, *hbox;
struct gopt_frame_widget *gfw;
GtkWidget *frame, *hbox;
struct gopt_frame_widget *gfw;
@@
-825,7
+826,7
@@
static struct gopt *gopt_new_str_val(struct gopt_job_view *gjv,
unsigned long long *p, unsigned int idx)
{
struct gopt_str_val *g;
unsigned long long *p, unsigned int idx)
{
struct gopt_str_val *g;
- const gchar *postfix[] = { "B", "K
B", "MB", "GB", "PB", "T
B", "" };
+ const gchar *postfix[] = { "B", "K
iB", "MiB", "GiB", "PiB", "Pi
B", "" };
GtkWidget *label;
int i;
GtkWidget *label;
int i;
@@
-1136,7
+1137,7
@@
static void gopt_add_options(struct gopt_job_view *gjv,
for (i = 0; fio_options[i].name; i++) {
struct fio_option *o = &fio_options[i];
uint64_t mask = o->category;
for (i = 0; fio_options[i].name; i++) {
struct fio_option *o = &fio_options[i];
uint64_t mask = o->category;
- struct opt_group *og;
+
const
struct opt_group *og;
while ((og = opt_group_from_mask(&mask)) != NULL) {
GtkWidget *vbox = gjv->vboxes[ffz64(~og->mask)];
while ((og = opt_group_from_mask(&mask)) != NULL) {
GtkWidget *vbox = gjv->vboxes[ffz64(~og->mask)];
@@
-1177,14
+1178,15
@@
static GtkWidget *gopt_add_tab(GtkWidget *notebook, const char *name)
return vbox;
}
return vbox;
}
-static GtkWidget *gopt_add_group_tab(GtkWidget *notebook, struct opt_group *og)
+static GtkWidget *gopt_add_group_tab(GtkWidget *notebook,
+ const struct opt_group *og)
{
return gopt_add_tab(notebook, og->name);
}
static void gopt_add_group_tabs(GtkWidget *notebook, struct gopt_job_view *gjv)
{
{
return gopt_add_tab(notebook, og->name);
}
static void gopt_add_group_tabs(GtkWidget *notebook, struct gopt_job_view *gjv)
{
- struct opt_group *og;
+
const
struct opt_group *og;
unsigned int i;
i = 0;
unsigned int i;
i = 0;