This website works better with JavaScript.
Home
Explore
Register
Sign In
Fincer
/
openntpd-openbsd
mirror of
https://github.com/Fincer/openntpd-openbsd
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
61
Wiki
Activity
Browse Source
Convert c to unsigned char, like it says in the manual. Also add
cast to make it explicit. Found by lint, OK millert.
OPENBSD_4_4
ray
17 years ago
parent
dc03d16f8b
commit
7e316934cd
1 changed files
with
3 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-4
src/lib/libc/string/memset.c
+ 3
- 4
src/lib/libc/string/memset.c
View File
@ -1,4 +1,4 @@
/* $OpenBSD: memset.c,v 1.
5 2005/08/08 08:05:37 espie
Exp $ */
/* $OpenBSD: memset.c,v 1.
6 2008/03/15 21:40:39 ray
Exp $ */
/*-
*
Copyright
(
c
)
1990
The
Regents
of
the
University
of
California
.
*
All
rights
reserved
.
@ -36,12 +36,11 @@
void
*
memset
(
void
*
dst
,
int
c
,
size_t
n
)
{
if
(
n
!
=
0
)
{
char
*
d
=
dst
;
unsigned
char
*
d
=
dst
;
do
*
d
+
+
=
c
;
*
d
+
+
=
(
unsigned
char
)
c
;
while
(
-
-
n
!
=
0
)
;
}
return
(
dst
)
;
Write
Preview
Loading…
Cancel
Save