X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fmodechange.c;h=f778c3aaf90b03f2cc9ddb11114b84bfb26e2a59;hb=bf12349422fa86edb18f51d0e6f402da7e74f7c2;hp=8eb8dc55db11c099c4d1f80dd15562bb758c4ab8;hpb=300424a2d37b17d304be2783ed40f2efa4d950c0;p=gnulib.git diff --git a/lib/modechange.c b/lib/modechange.c index 8eb8dc55d..f778c3aaf 100644 --- a/lib/modechange.c +++ b/lib/modechange.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by David MacKenzie */ @@ -24,30 +24,30 @@ changing the mode of many files, this probably results in a performance gain. */ -#ifdef HAVE_CONFIG_H -#include +#if HAVE_CONFIG_H +# include #endif #include #include #include "modechange.h" -#ifdef STDC_HEADERS -#include +#if STDC_HEADERS +# include #else char *malloc (); #endif #ifndef NULL -#define NULL 0 +# define NULL 0 #endif -#ifdef STAT_MACROS_BROKEN -#undef S_ISDIR -#endif /* STAT_MACROS_BROKEN. */ +#if STAT_MACROS_BROKEN +# undef S_ISDIR +#endif #if !defined(S_ISDIR) && defined(S_IFDIR) -#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) #endif /* Return newly allocated memory to hold one element of type TYPE. */ @@ -72,7 +72,7 @@ static int oatoi (); struct mode_change * mode_compile (mode_string, masked_ops) - register char *mode_string; + const char *mode_string; unsigned masked_ops; { struct mode_change *head; /* First element of the linked list. */ @@ -244,7 +244,7 @@ invalid: unsigned short mode_adjust (oldmode, changes) unsigned oldmode; - register struct mode_change *changes; + const struct mode_change *changes; { unsigned short newmode; /* The adjusted mode and one operand. */ unsigned short value; /* The other operand. */