use helpers from c.h
A few files still use the C library helpers from err.h, so migrate them to the local c.h helpers. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
committed by
Sami Kerola
parent
13d8cc0681
commit
afaf698896
@@ -13,6 +13,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "sig.h"
|
||||
#include "c.h"
|
||||
|
||||
/* Linux signals:
|
||||
*
|
||||
@@ -221,7 +222,7 @@ char *strtosig(const char *restrict s){
|
||||
|
||||
copy = strdup(s);
|
||||
if (!copy)
|
||||
err(EXIT_FAILURE, "cannot duplicate string");
|
||||
xerrx(EXIT_FAILURE, "cannot duplicate string");
|
||||
for (p = copy; *p != '\0'; p++)
|
||||
*p = toupper(*p);
|
||||
p = copy;
|
||||
|
Reference in New Issue
Block a user