----- Original Message ----- > From: "Libo Chen" <libo.c...@huawei.com> > To: varek...@redhat.com > Cc: "dhaval giani" <dhaval.gi...@gmail.com>, jsafr...@redhat.com, > libcg-devel@lists.sourceforge.net, > lize...@huawei.com, "h huangqiang" <h.huangqi...@huawei.com>, "wengmeiling > weng" <wengmeiling.w...@huawei.com>, > "libo chen" <libo.c...@huawei.com> > Sent: Tuesday, September 3, 2013 10:49:16 AM > Subject: [PATCH v3 3/8] cgconfig: fix the excursive processing > > From: Libo Chen <clbchenlibo.c...@huawei.com> > > error and ret should be unified > > Signed-off-by: Libo Chen <clbchenlibo.c...@huawei.com> Acked-by: Ivana Hutarova Varekova <varek...@redhat.com> > --- > src/tools/cgconfig.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/tools/cgconfig.c b/src/tools/cgconfig.c > index 81d07c9..0b1a2dd 100644 > --- a/src/tools/cgconfig.c > +++ b/src/tools/cgconfig.c > @@ -153,7 +153,7 @@ int main(int argc, char *argv[]) > error = cgroup_set_uid_gid(default_group, tuid, tgid, auid, agid); > if (error) { > fprintf(stderr, "%s: cannot set default UID and GID: %s\n", > - argv[0], cgroup_strerror(ret)); > + argv[0], cgroup_strerror(error)); > goto err; > } > > @@ -165,7 +165,7 @@ int main(int argc, char *argv[]) > error = cgroup_config_set_default(default_group); > if (error) { > fprintf(stderr, "%s: cannot set config parser defaults: %s\n", > - argv[0], cgroup_strerror(ret)); > + argv[0], cgroup_strerror(error)); > goto err; > } > > -- > 1.7.1 > > >
------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel