Re: [PATCH] Helper callback params

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Mon, 29 Oct 2012 09:06:56 -0600

On 10/27/2012 05:25 AM, Amos Jeffries wrote:

> Since the tokens we are looking for are followed by SP or the only thing
> on the line we can do this without worrying what EOL might be:
>
> "
> if (!strncmp(p,"OK",2) && (len == 2 || p[2] == ' ')) {
> result = HelperReply::Okay;
> p+=2;
> } else if (!strncmp(p,"ERR",3) && (len == 3 || p[3] == ' ')) {
> result = HelperReply::Error;
> p+=3;
> } else if (!strncmp(p,"BH",2) && (len == 2 || p[2] == ' ')) {
> "

Looks good to me.

Thank you,

Alex.
Received on Mon Oct 29 2012 - 15:07:04 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 30 2012 - 12:00:09 MDT