Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4ab1d4be
Commit
4ab1d4be
authored
Mar 12, 2000
by
Gerd Moellmann
Browse files
(cancel_atimer): Break out of the loop as soon as timer
has been found. Fix bug not computing timer's predecessor.
parent
9172b88d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/atimer.c
src/atimer.c
+2
-1
No files found.
src/atimer.c
View file @
4ab1d4be
...
...
@@ -176,7 +176,7 @@ cancel_atimer (timer)
struct
atimer
**
list
=
i
?
&
stopped_atimers
:
&
atimers
;
/* See if TIMER is active or stopped. */
for
(
t
=
*
list
,
prev
=
0
;
t
&&
t
!=
timer
;
t
=
t
->
next
)
for
(
t
=
*
list
,
prev
=
NULL
;
t
&&
t
!=
timer
;
prev
=
t
,
t
=
t
->
next
)
;
/* If it is, take it off the its list, and put in on the
...
...
@@ -191,6 +191,7 @@ cancel_atimer (timer)
t
->
next
=
free_atimers
;
free_atimers
=
t
;
break
;
}
}
...
...
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