From 3a93113a002db694657fcf24ff0c96aef83303b8 Mon Sep 17 00:00:00 2001 From: Dong Xu Wang Date: Tue, 29 Nov 2011 16:52:38 +0800 Subject: fix typo: delete redundant semicolon Double semicolons should be single. Signed-off-by: Dong Xu Wang Signed-off-by: Stefan Hajnoczi --- hw/9pfs/virtio-9p-handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/9pfs/virtio-9p-handle.c') diff --git a/hw/9pfs/virtio-9p-handle.c b/hw/9pfs/virtio-9p-handle.c index f97d8984bd..755e8e0f47 100644 --- a/hw/9pfs/virtio-9p-handle.c +++ b/hw/9pfs/virtio-9p-handle.c @@ -59,7 +59,7 @@ static inline int open_by_handle(int mountfd, const char *fh, int flags) static int handle_update_file_cred(int dirfd, const char *name, FsCred *credp) { int fd, ret; - fd = openat(dirfd, name, O_NONBLOCK | O_NOFOLLOW);; + fd = openat(dirfd, name, O_NONBLOCK | O_NOFOLLOW); if (fd < 0) { return fd; } -- cgit v1.2.3 From 66a0a2cb81fb9d0e4e372a21cb62c1d0d877b112 Mon Sep 17 00:00:00 2001 From: Dong Xu Wang Date: Tue, 29 Nov 2011 16:52:39 +0800 Subject: fix spelling in hw sub directory Correct obvious spelling errors in qemu/hw directory. Signed-off-by: Dong Xu Wang Signed-off-by: Stefan Hajnoczi --- hw/9pfs/virtio-9p-handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/9pfs/virtio-9p-handle.c') diff --git a/hw/9pfs/virtio-9p-handle.c b/hw/9pfs/virtio-9p-handle.c index 755e8e0f47..b556e39702 100644 --- a/hw/9pfs/virtio-9p-handle.c +++ b/hw/9pfs/virtio-9p-handle.c @@ -520,7 +520,7 @@ static int handle_name_to_path(FsContext *ctx, V9fsPath *dir_path, } fh = g_malloc(sizeof(struct file_handle) + data->handle_bytes); fh->handle_bytes = data->handle_bytes; - /* add a "./" at the begining of the path */ + /* add a "./" at the beginning of the path */ snprintf(buffer, PATH_MAX, "./%s", name); /* flag = 0 imply don't follow symlink */ ret = name_to_handle(dirfd, buffer, fh, &mnt_id, 0); -- cgit v1.2.3