X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fhelper%2Freplacements.c;h=b4bb94f06e43398e99771ea3ec05a4bf786d30e8;hb=063253fa89b2d48104b43783c03ff7161c5d1a5a;hp=d8d8fd0bf663fb972d4ff8f891a92286815cb348;hpb=71ee5f6b5f3172901135640de4ca827b14747465;p=openocd.git
diff --git a/src/helper/replacements.c b/src/helper/replacements.c
index d8d8fd0bf6..b4bb94f06e 100644
--- a/src/helper/replacements.c
+++ b/src/helper/replacements.c
@@ -19,9 +19,7 @@
* 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., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
+ * along with this program. If not, see . *
***************************************************************************/
/* DANGER!!!! These must be defined *BEFORE* replacements.h and the malloc() macro!!!! */
@@ -123,7 +121,7 @@ size_t strnlen(const char *s, size_t maxlen)
char *strndup(const char *s, size_t n)
{
size_t len = strnlen(s, n);
- char *new = (char *) malloc(len + 1);
+ char *new = malloc(len + 1);
if (new == NULL)
return NULL;
@@ -278,7 +276,7 @@ int win_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct time
#endif
#if defined HAVE_LIBUSB1 && !defined HAVE_LIBUSB_ERROR_NAME
-#include
+#include
/* Verbatim from git://git.libusb.org/libusb.git tag 1.0.9
* The libusb_error enum is compatible down to v0.9.1
*/