wizard.c (74677) | wizard.c (79304) |
---|---|
1/* 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@login.dknet.dk> 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@login.dknet.dk> 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 74677 2001-03-23 08:26:43Z jkh $ | 9 * $FreeBSD: head/usr.sbin/sade/wizard.c 79304 2001-07-05 09:51:09Z kris $ |
10 * 11 */ 12 13#include "sysinstall.h" 14#include <fcntl.h> 15#include <err.h> 16 17int --- 57 unchanged lines hidden (view full) --- 75 while(1) { 76 printf("--==##==--\n"); 77 Debug_Disk(d); 78 p = CheckRules(d); 79 if (p) { 80 printf("%s",p); 81 free(p); 82 } | 10 * 11 */ 12 13#include "sysinstall.h" 14#include <fcntl.h> 15#include <err.h> 16 17int --- 57 unchanged lines hidden (view full) --- 75 while(1) { 76 printf("--==##==--\n"); 77 Debug_Disk(d); 78 p = CheckRules(d); 79 if (p) { 80 printf("%s",p); 81 free(p); 82 } |
83 printf(myprompt); | 83 printf("%s", myprompt); |
84 fflush(stdout); 85 q = p = fgets(input,sizeof(input),stdin); 86 if(!p) 87 break; 88 for(cp = cmds; (*cp = strsep(&p, " \t\n")) != NULL;) 89 if (**cp != '\0') 90 cp++; 91 ncmd = cp - cmds; --- 111 unchanged lines hidden --- | 84 fflush(stdout); 85 q = p = fgets(input,sizeof(input),stdin); 86 if(!p) 87 break; 88 for(cp = cmds; (*cp = strsep(&p, " \t\n")) != NULL;) 89 if (**cp != '\0') 90 cp++; 91 ncmd = cp - cmds; --- 111 unchanged lines hidden --- |