From: Ben Pfaff Date: Thu, 6 Sep 2012 22:41:11 +0000 (-0700) Subject: unixctl: Fix comment on unixctl_command_register(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b558fd90249b2dff8991d2d2c1c610c719417b15;p=openvswitch unixctl: Fix comment on unixctl_command_register(). The arguments to the callback were changed some time ago but the comment still described the older form. Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- diff --git a/lib/unixctl.c b/lib/unixctl.c index 4ab493d4..8686de3f 100644 --- a/lib/unixctl.c +++ b/lib/unixctl.c @@ -95,13 +95,13 @@ unixctl_version(struct unixctl_conn *conn, int argc OVS_UNUSED, * arguments to the command; it is used only for presentation to the user in * "help" output. * - * 'cb' is called when the command is received. It is passed the actual set of - * arguments, as a text string, plus a copy of 'aux'. Normally 'cb' should - * reply by calling unixctl_command_reply() or unixctl_command_reply_error() - * before it returns, but if the command cannot be handled immediately then it - * can defer the reply until later. A given connection can only process a - * single request at a time, so a reply must be made eventually to avoid - * blocking that connection. */ + * 'cb' is called when the command is received. It is passed an array + * containing the command name and arguments, plus a copy of 'aux'. Normally + * 'cb' should reply by calling unixctl_command_reply() or + * unixctl_command_reply_error() before it returns, but if the command cannot + * be handled immediately then it can defer the reply until later. A given + * connection can only process a single request at a time, so a reply must be + * made eventually to avoid blocking that connection. */ void unixctl_command_register(const char *name, const char *usage, int min_args, int max_args,