diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-09-20 06:28:10 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-09-20 06:28:10 -0500 |
commit | 38c2ed7d7b0b8f068ea166316fd1c882d4ca35b5 (patch) | |
tree | 131d680dc955b5b75894ed3e68e1f8f54018918f /src/datetime-service.c | |
parent | 1ffd530753901cb424ddd64bc44b126296f33ca2 (diff) | |
download | ayatana-indicator-datetime-38c2ed7d7b0b8f068ea166316fd1c882d4ca35b5.tar.gz ayatana-indicator-datetime-38c2ed7d7b0b8f068ea166316fd1c882d4ca35b5.tar.bz2 ayatana-indicator-datetime-38c2ed7d7b0b8f068ea166316fd1c882d4ca35b5.zip |
for SKEW_DIFF_THRESHOLD_SEC and SKEW_CHECK_INTERVAL_SEC, use #define instead of enum
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r-- | src/datetime-service.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index 8db3c73..c01121e 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -52,12 +52,10 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #include "settings-shared.h" #include "utils.h" -enum { - /* how often to check for clock skew */ - SKEW_CHECK_INTERVAL_SEC = 10, +/* how often to check for clock skew */ +#define SKEW_CHECK_INTERVAL_SEC 19 - SKEW_DIFF_THRESHOLD_SEC = SKEW_CHECK_INTERVAL_SEC + 5 -}; +#define SKEW_DIFF_THRESHOLD_SEC (SKEW_CHECK_INTERVAL_SEC + 5) #ifdef HAVE_CCPANEL #define SETTINGS_APP_INVOCATION "gnome-control-center indicator-datetime" |