err.c (8fa0b743820f61c661ba5f3ea0e3be0dc137910e) | err.c (fd082e96c469d04c399fc0556f40cb7152ee9148) |
---|---|
1/*- 2 * Copyright (c) 2003-2007 Tim Kientzle 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 --- 26 unchanged lines hidden (view full) --- 35#include <stdlib.h> 36#endif 37#ifdef HAVE_STRING_H 38#include <string.h> 39#endif 40 41#include "err.h" 42 | 1/*- 2 * Copyright (c) 2003-2007 Tim Kientzle 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 --- 26 unchanged lines hidden (view full) --- 35#include <stdlib.h> 36#endif 37#ifdef HAVE_STRING_H 38#include <string.h> 39#endif 40 41#include "err.h" 42 |
43static void lafe_vwarnc(int, const char *, va_list) __LA_PRINTFLIKE(2, 0); 44 |
|
43const char *lafe_progname; 44 45static void 46lafe_vwarnc(int code, const char *fmt, va_list ap) 47{ 48 fprintf(stderr, "%s: ", lafe_progname); 49 vfprintf(stderr, fmt, ap); 50 if (code != 0) --- 24 unchanged lines hidden --- | 45const char *lafe_progname; 46 47static void 48lafe_vwarnc(int code, const char *fmt, va_list ap) 49{ 50 fprintf(stderr, "%s: ", lafe_progname); 51 vfprintf(stderr, fmt, ap); 52 if (code != 0) --- 24 unchanged lines hidden --- |