From 40b8c7914ae9e09fbccc67adfc87b23ba83fb937 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Thu, 22 Oct 2015 18:30:57 -0500 Subject: [PATCH] remove stale comments, update some Signed-off-by: Serge Hallyn --- cgmanager.c | 2 +- lxcfs.c | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/cgmanager.c b/cgmanager.c index d6938e4..aefc358 100644 --- a/cgmanager.c +++ b/cgmanager.c @@ -119,7 +119,7 @@ bool cgm_dbus_connect(void) retry: if (cgroup_manager) { if (!g_dbus_connection_is_closed(cgroup_manager)) { - // someone else reconnect us + // someone else reconnected us cgm_unlock(); return true; } diff --git a/lxcfs.c b/lxcfs.c index 267814c..3f29fdc 100644 --- a/lxcfs.c +++ b/lxcfs.c @@ -6,9 +6,6 @@ * See COPYING file for details. */ -/* XXX TODO - in debian/control, drop libcgmanager-dev, - and add libdbus-glib-1-dev, and libglib2.0-dev to build-deps. - make sure lxcfs_mkdir is added to the installed files */ #define FUSE_USE_VERSION 26 #include @@ -107,10 +104,6 @@ static char *must_copy_string(void *parent, const char *str) return dup; } -/* - * TODO - return value should denote whether child exited with failure - * so callers can return errors. Esp read/write of tasks and cgroup.procs - */ static int wait_for_pid(pid_t pid) { int status, ret; @@ -677,10 +670,6 @@ out: return ret; } -/* - * TODO - cache these results in a table for use in opendir, free - * in releasedir - */ static int cg_opendir(const char *path, struct fuse_file_info *fi) { struct fuse_context *fc = fuse_get_context(); @@ -1676,7 +1665,7 @@ int cg_mkdir(const char *path, mode_t mode) } } else { /* - * exec a helerp so as to get a clean dbus connection + * exec a helper so as to get a clean dbus connection * 17 for lxcfs_mkdir, and spaces and newline and \0. 50 for two ints. * 50 for two ints */ -- 2.39.5