]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Tighten up nonreentrant syntax-check.
authorChris Lalancette <clalance@redhat.com>
Fri, 23 Oct 2009 10:07:17 +0000 (12:07 +0200)
committerChris Lalancette <clalance@redhat.com>
Mon, 26 Oct 2009 09:33:42 +0000 (10:33 +0100)
We can slightly tighten up the regex's used to detect the use of
nonreentrant functions.  We can also check src/util/virterror.c
by modifying a comment; I think it's worth it to get the additional
coverage.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
.x-sc_prohibit_nonreentrant
src/util/virterror.c

index ac783c06b81912f029a92d62af5bb1186c07d54c..0ab2f5d1dfbdec71bf9c3a68ef5f6e90ce28ae36 100644 (file)
@@ -1,10 +1,10 @@
 ^gnulib/
 ^po/
-ChangeLog
+^ChangeLog$
+^ChangeLog-old$
 ^Makefile*
 ^docs/
 ^tests/
-^tools/virsh\.c
-^tools/console\.c
-^src/util/virterror\.c
+^tools/virsh\.c$
+^tools/console\.c$
 ^build-aux/
index e421ab787ee77322f90de547c835289d1b117fd7..657cb3f80246835f578ffc1e79d375812806dc33 100644 (file)
@@ -1157,7 +1157,7 @@ const char *virStrerror(int theerrno, char *errBuf, size_t errBufLen)
     return errBuf;
 # endif
 #else
-    /* Mingw lacks strerror_r() and its strerror() is definitely not
+    /* Mingw lacks strerror_r and its strerror is definitely not
      * threadsafe, so safest option is to just print the raw errno
      * value - we can at least reliably & safely look it up in the
      * header files for debug purposes