mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Change guestfs___* to guestfs_int_*
libguestfs has used double and triple underscores in identifiers. These aren't valid for global names in C++. The first step is to replace all guestfs___* (3 underscores) with guestfs_int_*. We've used guestfs_int_* elsewhere already as a prefix for internal identifiers. This is an entirely mechanical change done using: git ls-files | xargs perl -pi.bak -e 's/guestfs___/guestfs_int_/g' Reference: http://stackoverflow.com/a/228797
This commit is contained in:
@@ -94,15 +94,15 @@ main (int argc, char *argv[])
|
||||
|
||||
/* Allow the test to be skipped by setting an environment variable. */
|
||||
skip = getenv ("SKIP_TEST_PARALLEL_MOUNT_LOCAL");
|
||||
if (skip && guestfs___is_true (skip) > 0) {
|
||||
if (skip && guestfs_int_is_true (skip) > 0) {
|
||||
fprintf (stderr, "%s: test skipped because environment variable set.\n",
|
||||
guestfs___program_name);
|
||||
guestfs_int_program_name);
|
||||
exit (77);
|
||||
}
|
||||
|
||||
if (access ("/dev/fuse", W_OK) == -1) {
|
||||
fprintf (stderr, "%s: test skipped because /dev/fuse is not writable.\n",
|
||||
guestfs___program_name);
|
||||
guestfs_int_program_name);
|
||||
exit (77);
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ start_thread (void *statevp)
|
||||
char status_string[80];
|
||||
|
||||
fprintf (stderr, "%s: %s\n", state->mp,
|
||||
guestfs___exit_status_to_string (status, "test",
|
||||
guestfs_int_exit_status_to_string (status, "test",
|
||||
status_string,
|
||||
sizeof status_string));
|
||||
goto error;
|
||||
|
||||
Reference in New Issue
Block a user