Returning bool value from function

I am having some trouble with my buffer code, i am using a adafruit feather m0.

this is my log:
In function 'void seq_send(byte, byte, byte, byte)':
sequencer:92:8: error: void value not ignored as it ought to be
skip = buffer_scan(channel, command, data1, data2);
^

void seq_send(byte channel, byte command, byte data1, byte data2) {
  bool skip;
  skip = buffer_scan(channel, command, data1, data2);
  if (skip == 1)
  {
    debug.print("ignored a note");
  }
}


void buffer_scan(byte channel, byte command, byte data1, byte data2)
{
  bool result = 0;
  if (seqBuf_size > 0)
  {
    debug.print("seq buffer size: "); debug.println(seqBuf_size);
    for (int b = 1; b >= seqBuf_size; b++)
    {
      if (seqBuf_channel[b] == channel && seqBuf_data1[b] == data1 && seqBuf_data2[b] == data2)
      {
        result = 1;
        debug.print("found match in buffer"); debug.print(seqBuf_channel[b]); debug.print(seqBuf_data1[b]); debug.print(seqBuf_data2[b]);
        debug.println("");
      }
    }
  }
  return result;
}

"void" means "this function doesn't return anything."

If you want to return a boolean then declare the buffer_scan function as boolean.

Okey thanks, will it still accept three byte inputs?

brorgustav:
Okey thanks, will it still accept three byte inputs?

If that's how you write the definition. That has nothing to do with the return type.

boolean allEqual(byte a, byte b, byte c){
   if (a == b && a == c) return true;
   return false;
}

Thanks for the answers