]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - iw.h
iw: Fix return values when parameters are wrong
[thirdparty/iw.git] / iw.h
diff --git a/iw.h b/iw.h
index cef9da87aa85c497148470902252714d928e9652..263e8b1e9537b0afbb015db5482fa751d8c343b2 100644 (file)
--- a/iw.h
+++ b/iw.h
@@ -48,8 +48,8 @@ struct cmd {
        const enum command_identify_by idby;
        /*
         * The handler should return a negative error code,
-        * zero on success, 1 if the arguments were wrong
-        * and the usage message should and 2 otherwise.
+        * zero on success, 1 if the arguments were wrong.
+        * Return 2 iff you provide the error message yourself.
         */
        int (*handler)(struct nl80211_state *state,
                       struct nl_msg *msg,