Skip to content

Commit 72d19c5

Browse files
committed
Fix imports
1 parent 46e8835 commit 72d19c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

frida-gum/src/process.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ extern "C" {
2828

2929
#[cfg(not(target_os = "linux"))]
3030
extern "C" {
31-
pub fn _g_get_home_dir() -> *const c_char;
32-
pub fn _g_get_current_dir() -> *const c_char;
33-
pub fn _g_get_tmp_dir() -> *const c_char;
31+
pub fn g_get_home_dir() -> *const c_char;
32+
pub fn g_get_current_dir() -> *const c_char;
33+
pub fn g_get_tmp_dir() -> *const c_char;
3434
}
3535

3636
#[derive(Clone, FromPrimitive, Debug)]
@@ -132,7 +132,7 @@ impl<'a> Process<'a> {
132132
#[cfg(target_os = "linux")]
133133
let dir = _frida_g_get_current_dir();
134134
#[cfg(not(target_os = "linux"))]
135-
let dir = _g_get_current_dir();
135+
let dir = g_get_current_dir();
136136

137137
CStr::from_ptr(dir).to_string_lossy().to_string()
138138
}
@@ -144,7 +144,7 @@ impl<'a> Process<'a> {
144144
#[cfg(target_os = "linux")]
145145
let dir = _frida_g_get_tmp_dir();
146146
#[cfg(not(target_os = "linux"))]
147-
let dir = _g_get_tmp_dir();
147+
let dir = g_get_tmp_dir();
148148

149149
CStr::from_ptr(dir).to_string_lossy().to_string()
150150
}
@@ -156,7 +156,7 @@ impl<'a> Process<'a> {
156156
#[cfg(target_os = "linux")]
157157
let dir = _frida_g_get_home_dir();
158158
#[cfg(not(target_os = "linux"))]
159-
let dir = _g_get_home_dir();
159+
let dir = g_get_home_dir();
160160

161161
CStr::from_ptr(dir).to_string_lossy().to_string()
162162
}

0 commit comments

Comments
 (0)