Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8e339303
Commit
8e339303
authored
Feb 23, 1999
by
Karl Heuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(get_boot_time): Don't use BUFSIZ.
parent
75545902
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/filelock.c
src/filelock.c
+2
-2
No files found.
src/filelock.c
View file @
8e339303
...
...
@@ -116,12 +116,12 @@ get_boot_time ()
while
((
fd
=
open
(
"/proc/uptime"
,
O_RDONLY
))
>=
0
)
{
char
buf
[
BUFSIZ
];
char
buf
[
100
];
int
res
;
double
upsecs
;
time_t
uptime
;
read
(
fd
,
buf
,
BUFSIZ
);
read
(
fd
,
buf
,
sizeof
buf
);
close
(
fd
);
res
=
sscanf
(
buf
,
"%lf"
,
&
upsecs
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment