- add a few basic tests for pidof(8)
[oweals/busybox.git] / libbb / xregcomp.c
index 07cf779d153ae7ee5aadea31b9b58d4621261f2f..c28ca659d5afd86804d6b608d6cf2c14aa8d1769 100644 (file)
@@ -2,8 +2,8 @@
 /*
  * Utility routines.
  *
- * Copyright (C) many different people.  If you wrote this, please
- * acknowledge your work.
+ * Copyright (C) many different people.
+ * If you wrote this, please acknowledge your work.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@
 
 #include <stdio.h>
 #include "libbb.h"
-#include <regex.h>
+#include "xregex.h"
 
 
 
@@ -34,7 +34,7 @@ void xregcomp(regex_t *preg, const char *regex, int cflags)
                int errmsgsz = regerror(ret, preg, NULL, 0);
                char *errmsg = xmalloc(errmsgsz);
                regerror(ret, preg, errmsg, errmsgsz);
-               error_msg_and_die("xregcomp: %s", errmsg);
+               bb_error_msg_and_die("xregcomp: %s", errmsg);
        }
 }