projects
/
libc-test
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
21dd45c
)
cosmetic fixes
author
nsz
<nsz@port70.net>
Sat, 13 Oct 2012 19:29:39 +0000
(21:29 +0200)
committer
nsz
<nsz@port70.net>
Sat, 13 Oct 2012 19:29:39 +0000
(21:29 +0200)
src/misc/basename.c
patch
|
blob
|
history
src/misc/dirname.c
patch
|
blob
|
history
src/process/Makefile
patch
|
blob
|
history
src/stdlib/Makefile
patch
|
blob
|
history
src/string/Makefile
patch
|
blob
|
history
diff --git
a/src/misc/basename.c
b/src/misc/basename.c
index
071966a
..
a993587
100644
(file)
--- a/
src/misc/basename.c
+++ b/
src/misc/basename.c
@@
-5,7
+5,7
@@
#define T(path, want) \
{ \
#define T(path, want) \
{ \
- char tmp[100
0
]; \
+ char tmp[100]; \
char *got = basename(strcpy(tmp, path)); \
if (strcmp(want, got) != 0) \
error("basename(\"%s\") got \"%s\" want \"%s\"\n", path, got, want); \
char *got = basename(strcpy(tmp, path)); \
if (strcmp(want, got) != 0) \
error("basename(\"%s\") got \"%s\" want \"%s\"\n", path, got, want); \
@@
-13,7
+13,7
@@
int main()
{
int main()
{
- if (strcmp(
".", basename(0)
) != 0)
+ if (strcmp(
basename(0), "."
) != 0)
error("basename(0) returned \"%s\"; expected \".\"\n", basename(0));
T("", ".");
T("/usr/lib", "lib");
error("basename(0) returned \"%s\"; expected \".\"\n", basename(0));
T("", ".");
T("/usr/lib", "lib");
@@
-22,5
+22,7
@@
int main()
T("/", "/");
T("///", "/");
T("//usr//lib//", "lib");
T("/", "/");
T("///", "/");
T("//usr//lib//", "lib");
+ T(".", ".");
+ T("..", "..");
return test_status;
}
return test_status;
}
diff --git
a/src/misc/dirname.c
b/src/misc/dirname.c
index
ae8b67b
..
7a15a0a
100644
(file)
--- a/
src/misc/dirname.c
+++ b/
src/misc/dirname.c
@@
-5,7
+5,7
@@
#define T(path, want) \
{ \
#define T(path, want) \
{ \
- char tmp[100
0
]; \
+ char tmp[100]; \
char *got = dirname(strcpy(tmp, path)); \
if (strcmp(want, got) != 0) \
error("dirname(\"%s\") got \"%s\" want \"%s\"\n", path, got, want); \
char *got = dirname(strcpy(tmp, path)); \
if (strcmp(want, got) != 0) \
error("dirname(\"%s\") got \"%s\" want \"%s\"\n", path, got, want); \
diff --git
a/src/process/Makefile
b/src/process/Makefile
index
278e884
..
ee4552b
100644
(file)
--- a/
src/process/Makefile
+++ b/
src/process/Makefile
@@
-1,2
+1
@@
-TROOT=../..
-include $(TROOT)/Makefile.inc
+include ../../Makefile.inc
diff --git
a/src/stdlib/Makefile
b/src/stdlib/Makefile
index
645640b
..
e8f62fa
100644
(file)
--- a/
src/stdlib/Makefile
+++ b/
src/stdlib/Makefile
@@
-1,3
+1,3
@@
include ../../Makefile.inc
include ../../Makefile.inc
-LDFLAGS+=-lm
+
strtod_simple:
LDFLAGS+=-lm
diff --git
a/src/string/Makefile
b/src/string/Makefile
index
4105e2a
..
ee4552b
100644
(file)
--- a/
src/string/Makefile
+++ b/
src/string/Makefile
@@
-1,2
+1
@@
include ../../Makefile.inc
include ../../Makefile.inc
-