diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2008-11-14 11:58:09 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2008-11-14 11:58:09 +0000 |
commit | 4dcc6f61d2ac432522cb0d8249ced4b2437da0a5 (patch) | |
tree | 7b176ffeeb7bda768ae52a14198616c2982e1231 /usr.bin/sudo/compat.h | |
parent | b947682bc3ae9dc4a24d5a2c48e88d01ecd53b63 (diff) |
Upgrade to sudo 1.7. See the WHATSNEW files for details.
Diffstat (limited to 'usr.bin/sudo/compat.h')
-rw-r--r-- | usr.bin/sudo/compat.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/usr.bin/sudo/compat.h b/usr.bin/sudo/compat.h index 6469bb93c2a..39fcdd7e9bf 100644 --- a/usr.bin/sudo/compat.h +++ b/usr.bin/sudo/compat.h @@ -1,5 +1,6 @@ /* - * Copyright (c) 1996, 1998-2005 Todd C. Miller <Todd.Miller@courtesan.com> + * Copyright (c) 1996, 1998-2005, 2008 + * Todd C. Miller <Todd.Miller@courtesan.com> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -17,7 +18,7 @@ * Agency (DARPA) and Air Force Research Laboratory, Air Force * Materiel Command, USAF, under agreement number F39502-99-1-0512. * - * $Sudo: compat.h,v 1.76.2.4 2007/06/12 01:28:41 millert Exp $ + * $Sudo: compat.h,v 1.90 2008/11/09 14:13:12 millert Exp $ */ #ifndef _SUDO_COMPAT_H @@ -40,11 +41,11 @@ #if !defined(__GNUC__) || __GNUC__ < 2 || __GNUC__ == 2 && __GNUC_MINOR__ < 5 # define __attribute__(x) #endif - + /* For silencing gcc warnings about rcsids */ #ifndef __unused # if defined(__GNUC__) && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ > 7) -# define __unused __attribute__((__unused__)) +# define __unused __attribute__((__unused__)) # else # define __unused # endif @@ -53,7 +54,7 @@ /* For catching format string mismatches */ #ifndef __printflike # if defined(__GNUC__) && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ >= 7) -# define __printflike(f, v) __attribute__((__format__ (__printf__, f, v))) +# define __printflike(f, v) __attribute__((__format__ (__printf__, f, v))) # else # define __printflike(f, v) # endif @@ -152,9 +153,10 @@ #endif /* - * Simple isblank() macro for systems without it. + * Simple isblank() macro and function for systems without it. */ #ifndef HAVE_ISBLANK +int isblank __P((int)); # define isblank(_x) ((_x) == ' ' || (_x) == '\t') #endif |