git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[GFS2/DLM] Fix trailing whitespace
[pandora-kernel.git]
/
arch
/
powerpc
/
lib
/
e2a.c
diff --git
a/arch/powerpc/lib/e2a.c
b/arch/powerpc/lib/e2a.c
index
d2b8348
..
4b72ed8
100644
(file)
--- a/
arch/powerpc/lib/e2a.c
+++ b/
arch/powerpc/lib/e2a.c
@@
-1,9
+1,7
@@
/*
/*
- * arch/ppc64/lib/e2a.c
- *
* EBCDIC to ASCII conversion
*
* EBCDIC to ASCII conversion
*
- * This function moved here from arch/p
pc64/kernel/viopath.c
+ * This function moved here from arch/p
owerpc/platforms/iseries/viopath.c
*
* (C) Copyright 2000-2004 IBM Corporation
*
*
* (C) Copyright 2000-2004 IBM Corporation
*
@@
-105,4
+103,14
@@
unsigned char e2a(unsigned char x)
}
EXPORT_SYMBOL(e2a);
}
EXPORT_SYMBOL(e2a);
+unsigned char* strne2a(unsigned char *dest, const unsigned char *src, size_t n)
+{
+ int i;
+
+ n = strnlen(src, n);
+ for (i = 0; i < n; i++)
+ dest[i] = e2a(src[i]);
+
+ return dest;
+}