From 0332bd6f41b80963c6f14e9e4070c422ad9ca616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 17 Jul 2005 20:58:44 +0000 Subject: [PATCH] Removed bsd_mem.h and the functions it used from there. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13723 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/terminal/MYOB/TermApp.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/apps/terminal/MYOB/TermApp.cpp b/src/apps/terminal/MYOB/TermApp.cpp index c1c075785f..91fccdc53f 100644 --- a/src/apps/terminal/MYOB/TermApp.cpp +++ b/src/apps/terminal/MYOB/TermApp.cpp @@ -31,7 +31,6 @@ #include #include #include -#include #include #include @@ -624,7 +623,7 @@ argmatch (char **argv, int argc, char *sstr, char *lstr, *skipptr += 1; return 1; } - arglen = (valptr != NULL && (p = index (arg, '=')) != NULL + arglen = (valptr != NULL && (p = strchr(arg, '=')) != NULL ? p - arg : strlen (arg)); if (lstr == 0 || arglen < minlen || strncmp (arg, lstr, arglen) != 0) return 0; @@ -715,8 +714,8 @@ sort_args (int argc, char **argv) if (argv[from][1] == '-') { match = -1; - thislen = strlen (argv[from]); - equals = index (argv[from], '='); + thislen = strlen(argv[from]); + equals = strchr(argv[from], '='); if (equals != 0) thislen = equals - argv[from]; @@ -797,9 +796,9 @@ sort_args (int argc, char **argv) while (to < argc) newargv[to++] = 0; - bcopy (newargv, argv, sizeof (char *) * argc); + memcpy(argv, newargv, sizeof (char *) * argc); - free (options); - free (newargv); - free (priority); + free(options); + free(newargv); + free(priority); }