kbdmap.c (217359) | kbdmap.c (222568) |
---|---|
1/*- 2 * Copyright (c) 2002 Jonathan Belson <jon@witchspace.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002 Jonathan Belson <jon@witchspace.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/usr.sbin/kbdmap/kbdmap.c 217359 2011-01-13 16:42:16Z nwhitehorn $"); | 28__FBSDID("$FreeBSD: head/usr.sbin/kbdmap/kbdmap.c 222568 2011-06-01 15:48:43Z jh $"); |
29 30#include <sys/types.h> 31#include <sys/queue.h> 32 33#include <assert.h> 34#include <ctype.h> 35#include <dirent.h> 36#include <limits.h> --- 184 unchanged lines hidden (view full) --- 221 if (strcmp(buf, "NO")) { 222 if (fnt) 223 free(fnt); 224 fnt = (char *) malloc(strlen(buf) + 1); 225 strcpy(fnt, buf); 226 } 227 } 228 } | 29 30#include <sys/types.h> 31#include <sys/queue.h> 32 33#include <assert.h> 34#include <ctype.h> 35#include <dirent.h> 36#include <limits.h> --- 184 unchanged lines hidden (view full) --- 221 if (strcmp(buf, "NO")) { 222 if (fnt) 223 free(fnt); 224 fnt = (char *) malloc(strlen(buf) + 1); 225 strcpy(fnt, buf); 226 } 227 } 228 } |
229 fclose(fp); |
|
229 } else 230 fprintf(stderr, "Could not open %s for reading\n", sysconfig); 231 | 230 } else 231 fprintf(stderr, "Could not open %s for reading\n", sysconfig); 232 |
232 fclose(fp); | |
233 return fnt; 234} 235 236/* 237 * Set a font using 'vidcontrol' 238 */ 239static void 240vidcontrol(const char *fnt) --- 603 unchanged lines hidden --- | 233 return fnt; 234} 235 236/* 237 * Set a font using 'vidcontrol' 238 */ 239static void 240vidcontrol(const char *fnt) --- 603 unchanged lines hidden --- |