1/*
2 * Written By Julian ELischer
3 * Copyright julian Elischer 1993.
4 * Permission is granted to use or redistribute this file in any way as long
5 * as this notice remains. Julian Elischer does not guarantee that this file
6 * is totally correct for any given task and users of this file must
7 * accept responsibility for any damage that occurs from the application of this
8 * file.
--- 31 unchanged lines hidden (view full) ---
40 * SUCH DAMAGE.
41 */
42/*
43 * Taken from the original scsi(8) program.
44 * from: scsi.c,v 1.17 1998/01/12 07:57:57 charnier Exp $";
45 */
46#ifndef lint
47static const char rcsid[] =
48 "$FreeBSD: head/sbin/camcontrol/util.c 64382 2000-08-08 06:24:17Z kbyanc $";
49#endif /* not lint */
50
51#include <stdlib.h>
52#include <stdio.h>
53#include <string.h>
54#include <sys/types.h>
55
56#include <camlib.h>
57#include "camcontrol.h"
58
59int verbose;
60
61/* iget: Integer argument callback
62 */
63int
64iget(void *hook, char *name)
65{
66 struct get_hook *h = (struct get_hook *)hook;
67 int arg;
--- 77 unchanged lines hidden (view full) ---
145 break;
146
147 default:
148 printf("Unknown format letter: '%c'\n", letter);
149 }
150 if (verbose)
151 putchar('\n');
152}
2 * Written By Julian ELischer
3 * Copyright julian Elischer 1993.
4 * Permission is granted to use or redistribute this file in any way as long
5 * as this notice remains. Julian Elischer does not guarantee that this file
6 * is totally correct for any given task and users of this file must
7 * accept responsibility for any damage that occurs from the application of this
8 * file.
--- 31 unchanged lines hidden (view full) ---
40 * SUCH DAMAGE.
41 */
42/*
43 * Taken from the original scsi(8) program.
44 * from: scsi.c,v 1.17 1998/01/12 07:57:57 charnier Exp $";
45 */
46#ifndef lint
47static const char rcsid[] =
48 "$FreeBSD: head/sbin/camcontrol/util.c 64382 2000-08-08 06:24:17Z kbyanc $";
49#endif /* not lint */
50
51#include <stdlib.h>
52#include <stdio.h>
53#include <string.h>
54#include <sys/types.h>
55
56#include <camlib.h>
57#include "camcontrol.h"
58
59int verbose;
60
61/* iget: Integer argument callback
62 */
63int
64iget(void *hook, char *name)
65{
66 struct get_hook *h = (struct get_hook *)hook;
67 int arg;
--- 77 unchanged lines hidden (view full) ---
145 break;
146
147 default:
148 printf("Unknown format letter: '%c'\n", letter);
149 }
150 if (verbose)
151 putchar('\n');
152}