replace deprecated bzero function by memset.

This commit is contained in:
Audrey Diacre 2010-12-10 17:10:12 +00:00
parent 0e2bc992bf
commit 5133491c2c
7 changed files with 16 additions and 16 deletions

View file

@ -114,7 +114,7 @@ test_mifare_classic_format (void)
};
MifareClassicBlock empty;
bzero (empty, sizeof (empty));
memset (empty, 0, sizeof (empty));
res = mifare_classic_write (tag, 0x3c, data);
cut_assert_equal_int (0, res, cut_message ("mifare_classic_write() failed"));

View file

@ -198,7 +198,7 @@ test_mifare_desfire (void)
// Ensure that no content was changed yet
char ref_buffer[64];
bzero (ref_buffer, sizeof (ref_buffer));
memset (ref_buffer, 0, sizeof (ref_buffer));
for (int n = 0; n < transaction; n++) {
sprintf (ref_buffer + 3 * n, "%02d", n);
}