Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krishna Vinnakota
CSEP551
Commits
115e1774
Commit
115e1774
authored
17 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
standardize on not using unsigned keyword
parent
d80b06a1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ulib.c
+3
-3
3 additions, 3 deletions
ulib.c
user.h
+2
-2
2 additions, 2 deletions
user.h
usertests.c
+1
-1
1 addition, 1 deletion
usertests.c
with
6 additions
and
6 deletions
ulib.c
+
3
−
3
View file @
115e1774
...
...
@@ -25,10 +25,10 @@ strcmp(const char *p, const char *q)
{
while
(
*
p
&&
*
p
==
*
q
)
p
++
,
q
++
;
return
(
int
)
((
unsigned
char
)
*
p
-
(
u
nsigned
char
)
*
q
)
;
return
(
u
char
)
*
p
-
(
uchar
)
*
q
;
}
u
nsigned
int
uint
strlen
(
char
*
s
)
{
int
n
=
0
;
...
...
@@ -38,7 +38,7 @@ strlen(char *s)
}
void
*
memset
(
void
*
dst
,
int
c
,
u
nsigned
int
n
)
memset
(
void
*
dst
,
int
c
,
uint
n
)
{
char
*
d
=
(
char
*
)
dst
;
...
...
This diff is collapsed.
Click to expand it.
user.h
+
2
−
2
View file @
115e1774
...
...
@@ -27,8 +27,8 @@ char* strchr(const char*, char c);
int
strcmp
(
const
char
*
,
const
char
*
);
void
printf
(
int
,
char
*
,
...);
char
*
gets
(
char
*
,
int
max
);
u
nsigned
int
strlen
(
char
*
);
void
*
memset
(
void
*
,
int
,
u
nsigned
int
);
uint
strlen
(
char
*
);
void
*
memset
(
void
*
,
int
,
uint
);
void
*
malloc
(
uint
);
void
free
(
void
*
);
int
atoi
(
const
char
*
);
This diff is collapsed.
Click to expand it.
usertests.c
+
1
−
1
View file @
115e1774
...
...
@@ -654,7 +654,7 @@ concreate()
int
i
,
pid
,
n
,
fd
;
char
fa
[
40
];
struct
{
u
nsigned
short
inum
;
ushort
inum
;
char
name
[
14
];
}
de
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment