提交 bf2932a6 创建 作者: rsc's avatar rsc

final nits

上级 68a2d537
...@@ -574,9 +574,8 @@ skipelem(char *path, char *name) ...@@ -574,9 +574,8 @@ skipelem(char *path, char *name)
} }
// Look up and return the inode for a path name. // Look up and return the inode for a path name.
// If parent is set, return the inode for the parent // If parent != 0, return the inode for the parent and copy the final
// and write the final path element to name, which // path element into name, which must have room for DIRSIZ bytes.
// should have room for DIRSIZ bytes.
static struct inode* static struct inode*
_namei(char *path, int parent, char *name) _namei(char *path, int parent, char *name)
{ {
...@@ -618,6 +617,7 @@ namei(char *path) ...@@ -618,6 +617,7 @@ namei(char *path)
char name[DIRSIZ]; char name[DIRSIZ];
return _namei(path, 0, name); return _namei(path, 0, name);
} }
struct inode* struct inode*
nameiparent(char *path, char *name) nameiparent(char *path, char *name)
{ {
......
...@@ -12,8 +12,6 @@ bootasm.S ...@@ -12,8 +12,6 @@ bootasm.S
bootother.S bootother.S
bootmain.c bootmain.c
main.c main.c
initcode.S
init.c
# locks # locks
spinlock.h spinlock.h
...@@ -55,7 +53,7 @@ pipe.c ...@@ -55,7 +53,7 @@ pipe.c
# string operations # string operations
string.c string.c
# low-level PC # low-level hardware
mp.h mp.h
mp.c mp.c
lapic.c lapic.c
...@@ -67,14 +65,9 @@ console.c ...@@ -67,14 +65,9 @@ console.c
timer.c timer.c
# user-level # user-level
initcode.S
init.c
usys.S usys.S
sh.c sh.c
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论