]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - survey.c
iw: remove cb from arguments and simplify valid handler
[thirdparty/iw.git] / survey.c
index 39cd7b8cd1531dfa8b48318ac4dde1903f2a987d..3e875a83c6155426323fcb46bf89aa601f550952 100644 (file)
--- a/survey.c
+++ b/survey.c
@@ -69,12 +69,11 @@ static int print_survey_handler(struct nl_msg *msg, void *arg)
 }
 
 static int handle_survey_dump(struct nl80211_state *state,
-                             struct nl_cb *cb,
                              struct nl_msg *msg,
                              int argc, char **argv,
                              enum id_input id)
 {
-       nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, print_survey_handler, NULL);
+       register_handler(print_survey_handler, NULL);
        return 0;
 }
 COMMAND(survey, dump, NULL,