ggc.c
static int report_server_code(GG_packet *pkt) {
  int32_t ret;

  if (pkt->payload_size != 4) {
    REPORT_INFO("Server returned a malformed error\n");
    return -1;
  } else {
    ret = ggp_get_uint32(&pkt->payload);
    REPORT_INFO("Server returned error %d\n", ret);
    return 0;
  }
}
/* Read a big endian int32_t in a packet and report it
 *
 * Returns 0 on success, -1 on error
 */
Read a big endian int32_t in a packet and report it
Returns 0 on success, -1 on error
Read a big endian int32_t in a packet and report it Returns 0 on success - 1 on error
static int report_server_code(GG_packet *pkt) {
  int32_t ret;
  if (pkt->payload_size != 4) {
    REPORT_INFO("Server returned a malformed error\n");
    return -1;
  } else {
    ret = ggp_get_uint32(&pkt->payload);
    REPORT_INFO("Server returned error %d\n", ret);
    return 0;
  }
}
static int report_server_code ( GG_packet * pkt ) { int32_t ret ; if ( pkt -> payload_size != 4 ) { REPORT_INFO ( " \n " ) ; return -1 ; } else { ret = ggp_get_uint32 ( & pkt -> payload ) ; REPORT_INFO ( " \n " , ret ) ; return 0 ; } }
Read a big endian int32_t in a packet and report it
 Returns 0 on success, -1 on error
Read a big endian int32_t in a packet and report it Returns 0 on success - 1 on error