diff options
Diffstat (limited to 'backport/compat/backport-4.2.c')
-rw-r--r-- | backport/compat/backport-4.2.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/backport/compat/backport-4.2.c b/backport/compat/backport-4.2.c index e00aa49c..b275d349 100644 --- a/backport/compat/backport-4.2.c +++ b/backport/compat/backport-4.2.c @@ -65,3 +65,12 @@ struct aead_request *crypto_backport_convert(struct aead_request *req) return &nreq->subreq; } EXPORT_SYMBOL_GPL(crypto_backport_convert); + +char *strreplace(char *s, char old, char new) +{ + for (; *s; ++s) + if (*s == old) + *s = new; + return s; +} +EXPORT_SYMBOL_GPL(strreplace); |