Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367216
b: refs/heads/master
c: e00c73e
h: refs/heads/master
v: v3
  • Loading branch information
Michal Marek authored and Geert Uytterhoeven committed Apr 16, 2013
1 parent 3aa2021 commit 9775955
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 01a18d168776f27309e49c983415de9851d6cb57
refs/heads/master: e00c73ee05dc38ecaccced55d4f5fc58b0b769f7
14 changes: 0 additions & 14 deletions trunk/arch/m68k/include/asm/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@
#include <linux/types.h>
#include <linux/compiler.h>

static inline size_t __kernel_strlen(const char *s)
{
const char *sc;

for (sc = s; *sc++; )
;
return sc - s - 1;
}

static inline char *__kernel_strcpy(char *dest, const char *src)
{
char *xdest = dest;
Expand All @@ -27,11 +18,6 @@ static inline char *__kernel_strcpy(char *dest, const char *src)

#ifndef __IN_STRING_C

#define __HAVE_ARCH_STRLEN
#define strlen(s) (__builtin_constant_p(s) ? \
__builtin_strlen(s) : \
__kernel_strlen(s))

#define __HAVE_ARCH_STRNLEN
static inline size_t strnlen(const char *s, size_t count)
{
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/m68k/lib/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ EXPORT_SYMBOL(strcpy);

char *strcat(char *dest, const char *src)
{
return __kernel_strcpy(dest + __kernel_strlen(dest), src);
return __kernel_strcpy(dest + strlen(dest), src);
}
EXPORT_SYMBOL(strcat);

0 comments on commit 9775955

Please sign in to comment.