diff options
| author | chs <chs@NetBSD.org> | 2011-10-01 15:59:00 +0000 |
|---|---|---|
| committer | chs <chs@NetBSD.org> | 2011-10-01 15:59:00 +0000 |
| commit | 1b1a55d099db68f4eaa9676829bcb8ac64a3fc89 (patch) | |
| tree | 6abdead8e10dd058c0772c0401ddc9c6f6b10c3f /sys/arch/atari/include | |
| parent | 590bf223ca19fafde44e1821b766a2c93566765b (diff) | |
fix build errors with gcc 4.5.
Diffstat (limited to 'sys/arch/atari/include')
| -rw-r--r-- | sys/arch/atari/include/disklabel.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/atari/include/disklabel.h b/sys/arch/atari/include/disklabel.h index c20b1ef3f7f..0066e8466db 100644 --- a/sys/arch/atari/include/disklabel.h +++ b/sys/arch/atari/include/disklabel.h @@ -1,4 +1,4 @@ -/* $NetBSD: disklabel.h,v 1.9 2011/08/30 12:39:53 bouyer Exp $ */ +/* $NetBSD: disklabel.h,v 1.10 2011/10/01 15:59:00 chs Exp $ */ /* * Copyright (c) 1995 Leo Weppelman. @@ -71,7 +71,7 @@ struct bootblock { }; struct disklabel; -#define BBGETLABEL(bb, dl) *(dl) = *((struct disklabel *)(bb)->bb_label) -#define BBSETLABEL(bb, dl) *((struct disklabel *)(bb)->bb_label) = *(dl) +#define BBGETLABEL(bb, dl) memcpy((dl), (bb)->bb_label, sizeof (struct disklabel)) +#define BBSETLABEL(bb, dl) memcpy((bb)->bb_label, (dl), sizeof (struct disklabel)) #endif /* _MACHINE_DISKLABEL_H_ */ |
