|
@@ -3,15 +3,6 @@
|
|
#include <linux/kernel.h>
|
|
#include <linux/kernel.h>
|
|
#include <errno.h>
|
|
#include <errno.h>
|
|
|
|
|
|
-int prefixcmp(const char *str, const char *prefix)
|
|
|
|
-{
|
|
|
|
- for (; ; str++, prefix++)
|
|
|
|
- if (!*prefix)
|
|
|
|
- return 0;
|
|
|
|
- else if (*str != *prefix)
|
|
|
|
- return (unsigned char)*prefix - (unsigned char)*str;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* Used as the default ->buf value, so that people can always assume
|
|
* Used as the default ->buf value, so that people can always assume
|
|
* buf is non NULL and ->buf is NUL terminated even for a freshly
|
|
* buf is non NULL and ->buf is NUL terminated even for a freshly
|