File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ use std::ptr;
10
10
/// argument specifies logging options. The `facility` parameter encodes a default facility to be
11
11
/// assigned to all messages that do not have an explicit facility encoded.
12
12
//
13
- // On Linux, the `ident` argument needs to have static lifetime according to the
13
+ // On Linux, the `ident` argument needs to have static lifetime according to the
14
14
// man page:
15
- //
16
- // The argument ident in the call of openlog() is probably stored as-is. Thus,
15
+ //
16
+ // The argument ident in the call of openlog() is probably stored as-is. Thus,
17
17
// if the string it points to is changed, syslog() may start prepending the changed
18
- // string, and if the string it points to ceases to exist, the results are
18
+ // string, and if the string it points to ceases to exist, the results are
19
19
// undefined. Most portable is to use a string constant.
20
20
#[ cfg( target_os = "linux" ) ]
21
21
pub fn openlog (
@@ -33,7 +33,7 @@ pub fn openlog(
33
33
libc:: openlog ( ident. as_ptr ( ) , logopt, facility) ;
34
34
} ) ?,
35
35
}
36
-
36
+
37
37
Ok ( ( ) )
38
38
}
39
39
@@ -58,7 +58,7 @@ pub fn openlog<S: AsRef<OsStr> + ?Sized>(
58
58
libc:: openlog ( ident. as_ptr ( ) , logopt, facility) ;
59
59
} ) ?,
60
60
}
61
-
61
+
62
62
Ok ( ( ) )
63
63
}
64
64
You can’t perform that action at this time.
0 commit comments