Changeset 153 for trunk/src/sh_hash.c


Ignore:
Timestamp:
Jan 11, 2008, 11:47:17 PM (17 years ago)
Author:
katerina
Message:

Use -D_FORTIFY_SOURCE=1 -fstack-protector-all if supported. Compiler warnings fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_hash.c

    r149 r153  
    459459
    460460 unlock_and_return:
     461  ; /* 'label at end of compound statement */
    461462  SH_MUTEX_UNLOCK(mutex_hash);
    462463  return retval;
     
    13491350
    13501351 unlock_and_return:
     1352  ; /* 'label at end of compound statement */
    13511353  SH_MUTEX_UNLOCK(mutex_hash);
    13521354  SL_RET0(_("sh_hash_init"));
     
    13771379
    13781380 unlock_and_exit:
     1381  ; /* 'label at end of compound statement */
    13791382  SH_MUTEX_UNLOCK(mutex_hash);
    13801383  SL_RET0(_("sh_hash_hashdelete"));
     
    17921795        sl_write_line_fast (pushdata_fd, attr_string, sl_strlen(attr_string));
    17931796    } else {
    1794       fwrite (&p, sizeof(sh_filestore_t), 1, stdout);
    1795       printf ("%s\n", fullpath);
    1796       printf ("%s\n", linkpath);
    1797       if (attr_string)
    1798         printf ("%s\n", attr_string);
     1797      if (fwrite (&p, sizeof(sh_filestore_t), 1, stdout))
     1798        {
     1799          printf ("%s\n", fullpath);
     1800          printf ("%s\n", linkpath);
     1801          if (attr_string)
     1802            printf ("%s\n", attr_string);
     1803        }
     1804      else
     1805        {
     1806          perror(_("Error writing database"));
     1807          aud_exit (FIL__, __LINE__, EXIT_FAILURE);
     1808        }
    17991809    }
    18001810
     
    27282738
    27292739  char log_policy[32];
    2730   int  log_severity;
     2740  volatile int  log_severity;
    27312741  char hashbuf[KEYBUF_SIZE];
    27322742
     
    35043514
    35053515 unlock_and_return:
    3506 
     3516  ; /* 'label at end of compound statement */
    35073517  SH_MUTEX_UNLOCK(mutex_hash);
    35083518  SL_RETURN(retval, _("sh_hash_compdata"));
Note: See TracChangeset for help on using the changeset viewer.