Help debuggin in Arduino Ethernet: expected initializer before 'UpdateRecords'

Hi there!

i’m programing on a Arduino Ethernet board, and get 'expected initializer before ‘UpdateRecords’ error. Im relatively new in arduino debugging, i think im doing something wrong inside UpdateRecords function but really can’t find what’s wrong!

i quoted the place where debugger put the cursor. I really dont know if im stating something variables in a bad place!

there is the code:

/*
  DATA GO
 
 versión 0.2 

+conexion ethernet
+obtencion de lista.php


 Circuito:
 * Arduino Ethernet 
 
 creado 18 Apr 2012
 por Ramiro Ricoy
 
*/

#include <SPI.h>
#include <Ethernet.h>
#include <PString.h>
// DEBUGGER MARK ERROR HERE!!!!
byte mac[] = {  0x90, 0xA2, 0xDA, 0x0D, 0x27, 0x8E };
byte ip[] = { 192,168,1, 15 };   
byte gateway[] = { 192,168,1, 1 };
byte subnet[] = { 255,255,255,0 };
boolean res=true;
IPAddress server(192,168,1,12); 

EthernetClient client;

void setup(){
  Serial.begin(9600);
  Serial.print("INICIANDO");
  Ethernet.begin(mac,ip,gateway,subnet);  
  delay(1000);
  Serial.print("...   LISTO/n");
}

void loop(){

  delay(10000);
  res=UpdateRecords();
}

boolean function UpdateRecords(){
  
  int update_con = 0;
  int max_attemps=3;
  int max_a_temp=0;
  char error[24];
  char buffer[40];
  PString PALABRA(buffer, sizeof(buffer));  
  boolean secuencia=false;

  
  while (update_con==0){  
    if (client.connect(server, 80)) {
      update_con=1;
      client.println("GET /lista.php HTTP/1.0");
      client.println();
    } else {
       delay (1000);
       if (max_a_temp>=max_attemps){
         error="Imposible conectar.";
         break;
       }
       max_a_temp++;
    }
  }

  // TRAS max_attemps INTENTOS, NO SE PUDO CONECTAR...
  
  if (update_con==0) {
    //error tiene informacion desplegable para el display.
    Serial.println(error);
    return false;
  }

  //CONECTADOS

  while (update_con==1){
    if (client.available()) {
      char c = client.read();
        if (c=='%'){
          secuencia=false;
          Serial.print(". LISTO");
          Serial.println("");
          Serial.println(PALABRA); 
        }

        if (secuencia==true){
          PALABRA += c;
          Serial.print(".");
        }
        if (c=='#'){
          secuencia=true;
          Serial.print("Recuperando");
        } 
    }
    if (!client.connected()) {
      Serial.println();
      Serial.println("disconnecting.");
      client.stop();
      update_con=0;
    }
  }
}

Really thanks!

boolean function UpdateRecords(){

What is the word 'function' doing here?

What is the word 'function' doing here?

Isn't that obvious? It's causing problems! Sheesh, you'd think you could see that... :)

GOD WHY! haha

thanks guys! now it's working . I assumed function declaration like php are :(