diff options
| -rw-r--r-- | utils/bswap.h | 4 | ||||
| -rw-r--r-- | utils/ldd.c | 17 | ||||
| -rw-r--r-- | utils/readelf.c | 19 |
3 files changed, 6 insertions, 34 deletions
diff --git a/utils/bswap.h b/utils/bswap.h index 6e7f7d336..56c3a1d32 100644 --- a/utils/bswap.h +++ b/utils/bswap.h @@ -33,12 +33,12 @@ #include <byteswap.h> #else -static inline uint32_t bswap_32(uint32_t x) +static inline uint16_t bswap_16(uint16_t x) { return ((((x) & 0xff00) >> 8) | \ (((x) & 0x00ff) << 8)); } -static inline uint16_t bswap_16(uint16_t x) +static inline uint32_t bswap_32(uint32_t x) { return ((((x) & 0xff000000) >> 24) | \ (((x) & 0x00ff0000) >> 8) | \ diff --git a/utils/ldd.c b/utils/ldd.c index ed0551175..b454779e1 100644 --- a/utils/ldd.c +++ b/utils/ldd.c @@ -2,7 +2,7 @@ /* * A small little ldd implementation for uClibc * - * Copyright (C) 2000-2004 Erik Andersen <andersee@debian.org> + * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> * * Several functions in this file (specifically, elf_find_section_type(), * elf_find_phdr_type(), and elf_find_dynamic(), were stolen from elflib.c from @@ -10,20 +10,7 @@ * <jreiser@BitWagon.com>, which is copyright 2000 BitWagon Software LLC * (GPL2). * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * Licensed under GPLv2 or later */ #include <stdlib.h> diff --git a/utils/readelf.c b/utils/readelf.c index 0aaf2de65..d562b1138 100644 --- a/utils/readelf.c +++ b/utils/readelf.c @@ -2,8 +2,7 @@ /* * A small little readelf implementation for uClibc * - * Copyright (C) 2000 by Lineo, inc and Erik Andersen - * Copyright (C) 2000-2002 Erik Andersen <andersee@debian.org> + * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> * * Several functions in this file (specifically, elf_find_section_type(), * elf_find_phdr_type(), and elf_find_dynamic(), were stolen from elflib.c from @@ -11,20 +10,7 @@ * <jreiser@BitWagon.com>, which is copyright 2000 BitWagon Software LLC * (GPL2). * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * Licensed under GPLv2 or later */ @@ -375,4 +361,3 @@ foo: return 0; } - |
