From c2d9d524c092957762795ce1621e477e0d85ac2d Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Sat, 6 Aug 2005 02:36:59 +0000 Subject: [PATCH] shouldn't be any segfaults when using i2c stuff it it's not available git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@63 7f574dfc-610e-0410-a909-a81674777703 --- Conky.kdevelop | 2 +- app-admin/conky/conky-1.9999.ebuild | 2 +- linux.c | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Conky.kdevelop b/Conky.kdevelop index 86c6d320..748a1019 100644 --- a/Conky.kdevelop +++ b/Conky.kdevelop @@ -48,7 +48,7 @@ - --enable-debug=full --prefix=/usr --enable-mpd --disable-xft --enable-seti --enable-double-buffer --disable-own-window --enable-metar --enable-mldonkey + --enable-debug=full --prefix=/usr --enable-mpd --enable-xft --enable-seti --enable-double-buffer --enable-own-window --enable-metar --enable-mldonkey debug kdevgccoptions kdevgppoptions diff --git a/app-admin/conky/conky-1.9999.ebuild b/app-admin/conky/conky-1.9999.ebuild index 8b65f2fd..6bb2e7a4 100644 --- a/app-admin/conky/conky-1.9999.ebuild +++ b/app-admin/conky/conky-1.9999.ebuild @@ -1,4 +1,4 @@ -# CVS ebuild for Conky +# CVS ebuild for Conky, thanks to Hopeless # $Header$ ECVS_SERVER="cvs.sourceforge.net:/cvsroot/conky" diff --git a/linux.c b/linux.c index 380b90ae..99b7aaf2 100644 --- a/linux.c +++ b/linux.c @@ -503,8 +503,9 @@ open_i2c_sensor(const char *dev, const char *type, int n, int *div, /* open file */ fd = open(path, O_RDONLY); - if (fd < 0) - ERR("can't open '%s': %s", path, strerror(errno)); + if (fd < 0) { + CRIT_ERR("can't open '%s': %s", path, strerror(errno)); + } if (strcmp(type, "in") == 0 || strcmp(type, "temp") == 0 || strcmp(type, "tempf") == 0)