Changeset 575


Ignore:
Timestamp:
Mar 7, 2022, 7:11:41 PM (3 years ago)
Author:
katerina
Message:

Fix for ticket #463 (gcc 11.2 compiler warnings).

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_calls.c

    r550 r575  
    933933}
    934934
    935 int aud_pipe (const char * file, int line, int * modus)
     935int aud_pipe (const char * file, int line, int modus[2])
    936936{
    937937  int error;
  • trunk/src/sh_checksum.c

    r450 r575  
    408408}
    409409
    410 void SHA256_Final(sha2_byte digest[], SHA256_CTX* context)
     410void SHA256_Final(sha2_byte digest[SHA256_DIGEST_LENGTH], SHA256_CTX* context)
    411411{
    412412  sha2_word32     *d = (sha2_word32*)digest;
     
    482482
    483483/* If buffer is of length KEYBUF_SIZE, the digest will fit */
    484 char *SHA256_End(SHA256_CTX* context, char buffer[])
     484char *SHA256_End(SHA256_CTX* context, char buffer[KEYBUF_SIZE])
    485485{
    486486  sha2_byte       digest[SHA256_DIGEST_LENGTH];
  • trunk/src/sh_xfer_server.c

    r561 r575  
    24072407                                (conn->head[0]|SH_PROTO_SRP));
    24082408         
    2409           if (conn->A  != NULL) SH_FREE(conn->A);  conn->A  = NULL;
    2410           if (conn->M1 != NULL) SH_FREE(conn->M1); conn->M1 = NULL;
     2409          if (conn->A  != NULL)
     2410            SH_FREE(conn->A);
     2411          conn->A  = NULL;
     2412          if (conn->M1 != NULL)
     2413            SH_FREE(conn->M1);
     2414          conn->M1 = NULL;
    24112415          sl_strlcpy(conn->client_entry->session_key,
    24122416                     conn->K, KEY_LEN+1);
     
    24312435#endif
    24322436         
    2433           if (conn->K  != NULL) SH_FREE(conn->K);  conn->K  = NULL;
     2437          if (conn->K  != NULL)
     2438            SH_FREE(conn->K);
     2439          conn->K  = NULL;
    24342440         
    24352441          conn->client_entry->last_connect = time (NULL);
Note: See TracChangeset for help on using the changeset viewer.