Deleted Added
full compact
wizard.c (133040) wizard.c (156123)
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.org> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.org> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *
9 * $FreeBSD: head/usr.sbin/sade/wizard.c 133040 2004-08-02 23:18:48Z marcel $
9 * $FreeBSD: head/usr.sbin/sade/wizard.c 156123 2006-02-28 21:49:33Z jhb $
10 *
11 */
12
13#include "sysinstall.h"
14#include <fcntl.h>
15#include <err.h>
16#include <libdisk.h>
17
10 *
11 */
12
13#include "sysinstall.h"
14#include <fcntl.h>
15#include <err.h>
16#include <libdisk.h>
17
18int
18static int
19scan_block(int fd, daddr_t block)
20{
21 u_char foo[512];
22
23 if (-1 == lseek(fd,block * 512,SEEK_SET))
24 err(1,"lseek");
25 if (512 != read(fd,foo, 512))
26 return 1;
27 return 0;
28}
29
19scan_block(int fd, daddr_t block)
20{
21 u_char foo[512];
22
23 if (-1 == lseek(fd,block * 512,SEEK_SET))
24 err(1,"lseek");
25 if (512 != read(fd,foo, 512))
26 return 1;
27 return 0;
28}
29
30void
30static void
31Scan_Disk(Disk *d)
32{
33 char device[64];
34 u_long l;
35 int i,j,fd;
36
37 strcpy(device,"/dev/");
38 strcat(device,d->name);

--- 163 unchanged lines hidden ---
31Scan_Disk(Disk *d)
32{
33 char device[64];
34 u_long l;
35 int i,j,fd;
36
37 strcpy(device,"/dev/");
38 strcat(device,d->name);

--- 163 unchanged lines hidden ---