about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2023-02-28 14:25:57 +0100
committerMikael Magnusson <mikachu@gmail.com>2023-10-16 10:36:12 +0200
commit6b34f3dc14d5caf7f4e3ef0a6416224edf905c48 (patch)
treec63410d0fa2aa7da8447af926d717fdb1dc5d8b2 /Src/Zle
parentc9da370470754fe4760a5c62671174fce4441931 (diff)
downloadzsh-6b34f3dc14d5caf7f4e3ef0a6416224edf905c48.tar.gz
zsh-6b34f3dc14d5caf7f4e3ef0a6416224edf905c48.tar.xz
zsh-6b34f3dc14d5caf7f4e3ef0a6416224edf905c48.zip
51490: Use time_t for lastt which stores result of time(0)
Coverity complained about this, and possibly some more people would in 15
years
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/computil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index 77ccdebf7..360667884 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -911,7 +911,7 @@ struct cadef {
     Caarg rest;			/* the rest-argument */
     char **defs;		/* the original strings */
     int ndefs;			/* number of ... */
-    int lastt;			/* last time this was used */
+    time_t lastt;		/* last time this was used */
     Caopt *single;		/* array of single-letter options */
     char *match;		/* -M spec to use */
     int argsactive;		/* if normal arguments are still allowed */
@@ -2935,7 +2935,7 @@ struct cvdef {
     Cvval vals;			/* value definitions */
     char **defs;		/* original strings */
     int ndefs;			/* number of ... */
-    int lastt;			/* last time used */
+    time_t lastt;		/* last time used */
     int words;                  /* if to look at other words */
 };