summaryrefslogtreecommitdiffstats
path: root/libkholidays/parseholiday.y
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-01-30 20:17:36 +0900
committerMichele Calgaro <[email protected]>2020-01-30 23:52:43 +0900
commit82d3e5d6303d901f09752be3cd3c0998cfb46f64 (patch)
tree51a23fb0ea9adfa3c2391473cef6ee425baa4b37 /libkholidays/parseholiday.y
parent92e4936facb693a879f06137b5d86d633b0a5427 (diff)
downloadtdepim-82d3e5d6303d901f09752be3cd3c0998cfb46f64.tar.gz
tdepim-82d3e5d6303d901f09752be3cd3c0998cfb46f64.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 90c6a46c9c8d9d18e74302fa43b80ef77ce48f93)
Diffstat (limited to 'libkholidays/parseholiday.y')
-rw-r--r--libkholidays/parseholiday.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/libkholidays/parseholiday.y b/libkholidays/parseholiday.y
index fd03b11d2..50e80cb9d 100644
--- a/libkholidays/parseholiday.y
+++ b/libkholidays/parseholiday.y
@@ -634,8 +634,8 @@ static int day_from_wday(int day, int wday, int num)
static void initialize()
{
- register struct holiday *hp;
- register int dy;
+ struct holiday *hp;
+ int dy;
initialized = 1;
for (hp=holidays, dy=0; dy < 366; dy++, hp++)
{
@@ -657,8 +657,8 @@ static void initialize()
char *parse_holidays(const char *holidayfile, int year, short force)
{
- register struct holiday *hp;
- register int dy;
+ struct holiday *hp;
+ int dy;
short piped = 0;
if (!initialized)
initialize();