/* utimecmp.c -- compare file time stamps
- Copyright (C) 2004-2007, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2004-2007, 2009-2011 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
# define MAX(a, b) ((a) > (b) ? (a) : (b))
#endif
-enum { BILLION = 1000 * 1000 * 1000 };
+#define BILLION (1000 * 1000 * 1000)
/* Best possible resolution that utimens can set and stat can return,
due to system-call limitations. It must be a power of 10 that is
res = SYSCALL_RESOLUTION;
- for (a /= res; a % 10 != 0; a /= 10)
+ for (a /= res; a % 10 == 0; a /= 10)
{
if (res == BILLION)
{