chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build fixes for GCC 4.1
[disorder]
/
disobedience
/
users.c
diff --git
a/disobedience/users.c
b/disobedience/users.c
index bb099f2d7ac27ab39ea7e57f2941a282809f5bc4..60bdef64ba719d6287043901b8c4fe52716c4063 100644
(file)
--- a/
disobedience/users.c
+++ b/
disobedience/users.c
@@
-116,13
+116,13
@@
static int users_find_user(const char *user,
* If users_deferred_select is set then that user is selected.
*/
static void users_got_list(void attribute((unused)) *v,
* If users_deferred_select is set then that user is selected.
*/
static void users_got_list(void attribute((unused)) *v,
- const char *err
or
,
+ const char *err,
int nvec, char **vec) {
int n;
GtkTreeIter iter;
int nvec, char **vec) {
int n;
GtkTreeIter iter;
- if(err
or
) {
- popup_protocol_error(0, err
or
);
+ if(err) {
+ popup_protocol_error(0, err);
return;
}
/* Present users in alphabetical order */
return;
}
/* Present users in alphabetical order */
@@
-436,16
+436,16
@@
static rights_type users_get_rights(void) {
/** @brief Called when a user setting has been edited */
static void users_edituser_completed(void attribute((unused)) *v,
/** @brief Called when a user setting has been edited */
static void users_edituser_completed(void attribute((unused)) *v,
- const char *err
or
) {
- if(err
or
)
- popup_submsg(users_window, GTK_MESSAGE_ERROR, err
or
);
+ const char *err) {
+ if(err)
+ popup_submsg(users_window, GTK_MESSAGE_ERROR, err);
}
/** @brief Called when a new user has been created */
static void users_adduser_completed(void *v,
}
/** @brief Called when a new user has been created */
static void users_adduser_completed(void *v,
- const char *err
or
) {
- if(err
or
) {
- popup_submsg(users_window, GTK_MESSAGE_ERROR, err
or
);
+ const char *err) {
+ if(err) {
+ popup_submsg(users_window, GTK_MESSAGE_ERROR, err);
mode(ADD); /* Let the user try again */
} else {
const struct kvp *const kvp = v;
mode(ADD); /* Let the user try again */
} else {
const struct kvp *const kvp = v;
@@
-534,9
+534,9
@@
static void users_apply(GtkButton attribute((unused)) *button,
/** @brief Called when a user has been deleted */
static void users_delete_completed(void *v,
/** @brief Called when a user has been deleted */
static void users_delete_completed(void *v,
- const char *err
or
) {
- if(err
or
)
- popup_submsg(users_window, GTK_MESSAGE_ERROR, err
or
);
+ const char *err) {
+ if(err)
+ popup_submsg(users_window, GTK_MESSAGE_ERROR, err);
else {
const struct kvp *const kvp = v;
const char *const user = kvp_get(kvp, "user");
else {
const struct kvp *const kvp = v;
const char *const user = kvp_get(kvp, "user");
@@
-572,26
+572,26
@@
static void users_delete(GtkButton attribute((unused)) *button,
}
static void users_got_email(void attribute((unused)) *v,
}
static void users_got_email(void attribute((unused)) *v,
- const char *err
or
,
+ const char *err,
const char *value) {
const char *value) {
- if(err
or
)
- popup_protocol_error(0, err
or
);
+ if(err)
+ popup_protocol_error(0, err);
users_email = value;
}
static void users_got_rights(void attribute((unused)) *v,
users_email = value;
}
static void users_got_rights(void attribute((unused)) *v,
- const char *err
or
,
+ const char *err,
const char *value) {
const char *value) {
- if(err
or
)
- popup_protocol_error(0, err
or
);
+ if(err)
+ popup_protocol_error(0, err);
users_rights = value;
}
static void users_got_password(void attribute((unused)) *v,
users_rights = value;
}
static void users_got_password(void attribute((unused)) *v,
- const char *err
or
,
+ const char *err,
const char *value) {
const char *value) {
- if(err
or
)
- popup_protocol_error(0, err
or
);
+ if(err)
+ popup_protocol_error(0, err);
/* TODO if an error occurred gathering user info, we should react in some
* different way */
users_password = value;
/* TODO if an error occurred gathering user info, we should react in some
* different way */
users_password = value;