diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-11-29 04:42:45 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-11-29 04:42:45 +0000 |
commit | 9e31359becb63222bd28f2c6c16aa35439bf9141 (patch) | |
tree | b078137d0c616e7b9ce71c28c9935b08fb26b569 /usr.sbin | |
parent | ef2d0fec167e68add6f0b37fdc7a9ef10ac66e79 (diff) |
normalize_name() is no longer needed
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rpki-client/main.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c index a66918ff9fe..48f43581566 100644 --- a/usr.sbin/rpki-client/main.c +++ b/usr.sbin/rpki-client/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.39 2019/11/29 04:40:04 claudio Exp $ */ +/* $OpenBSD: main.c,v 1.40 2019/11/29 04:42:44 claudio Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -161,7 +161,6 @@ TAILQ_HEAD(entityq, entity); /* * Mark that our subprocesses will never return. */ -char *normalize_name(const char *); static void proc_parser(int, int) __attribute__((noreturn)); static void proc_rsync(char *, char *, int, int) __attribute__((noreturn)); @@ -807,20 +806,6 @@ out: /* NOTREACHED */ } -char * -normalize_name(const char *name) -{ - char *s; - - if ((s = strrchr(name, '/')) != NULL) { - if (s+1 != '\0') { - s = s+1; - return s; - } - } - return NULL; -} - /* * Parse and validate a ROA. * This is standard stuff. |