chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util: drop parse_user_at_host() since its unused now
[elogind.git]
/
src
/
shared
/
util.c
diff --git
a/src/shared/util.c
b/src/shared/util.c
index f76ed6f563cf32eb2ef524e30a694e7d12e3a4dd..21edd3ac2f38ab47e5c3453e626f4171ba557d72 100644
(file)
--- a/
src/shared/util.c
+++ b/
src/shared/util.c
@@
-5838,20
+5838,6
@@
bool id128_is_valid(const char *s) {
return true;
}
return true;
}
-void parse_user_at_host(char *arg, char **user, char **host) {
- assert(arg);
- assert(user);
- assert(host);
-
- *host = strchr(arg, '@');
- if (*host == NULL)
- *host = arg;
- else {
- *host[0]++ = '\0';
- *user = arg;
- }
-}
-
int split_pair(const char *s, const char *sep, char **l, char **r) {
char *x, *a, *b;
int split_pair(const char *s, const char *sep, char **l, char **r) {
char *x, *a, *b;