diff options
author | phk <phk@FreeBSD.org> | 2002-10-29 14:45:43 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-29 14:45:43 +0000 |
commit | 885738b312e567fc582d92e7064358386643c44e (patch) | |
tree | a74a7428ad8a9dedcf3ac22ca074229605fa4f8a /lib | |
parent | e0746634a51c9f54d8d43ab114ba2e00cdadeeed (diff) | |
download | FreeBSD-src-885738b312e567fc582d92e7064358386643c44e.zip FreeBSD-src-885738b312e567fc582d92e7064358386643c44e.tar.gz |
Don't call warn(3).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libdisk/write_alpha_disk.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libdisk/write_alpha_disk.c b/lib/libdisk/write_alpha_disk.c index 0e902f0..c63850a 100644 --- a/lib/libdisk/write_alpha_disk.c +++ b/lib/libdisk/write_alpha_disk.c @@ -87,12 +87,8 @@ Write_Disk(const struct disk *d1) fd = open(device,O_RDWR); - if (fd < 0) { -#ifdef DEBUG - warn("open(%s) failed", device); -#endif + if (fd < 0) return 1; - } memset(s,0,sizeof s); mbr = read_block(fd, 0, d1->sector_size); |