diff options
author | Toomas Soome <tsoome@me.com> | 2017-08-08 11:36:03 +0300 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2017-11-27 11:21:14 -0500 |
commit | 1d2945e8b51a96806bfb1bc3cb0b1cf6732925e4 (patch) | |
tree | ec88d6856c886f45805a4484fb659e171320ddc1 /usr/src | |
parent | df9cdf1096bbdb93cb9c2bb9d089a7804dc1d809 (diff) | |
download | illumos-gate-1d2945e8b51a96806bfb1bc3cb0b1cf6732925e4.tar.gz |
8847 libadm: variable 'daynum' set but not used
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: Yuri Pankov <yuripv@gmx.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/lib/libadm/common/ckdate.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr/src/lib/libadm/common/ckdate.c b/usr/src/lib/libadm/common/ckdate.c index 7c0db59beb..9ae38509e1 100644 --- a/usr/src/lib/libadm/common/ckdate.c +++ b/usr/src/lib/libadm/common/ckdate.c @@ -115,22 +115,19 @@ static char * p_eday(char *string, int llim, int ulim) { char *ptr, *copy; - char daynum[3]; int begin = -1; int iday = 0; int idaymax = 2; - daynum[0] = '\0'; if (*string == BLANK) { string++; idaymax--; } copy = string; while (isdigit((unsigned char)*copy) && (iday < idaymax)) { - daynum[iday] = *copy++; + copy++; iday++; } - daynum[iday] = '\0'; if (iday == 1) { llim = 1; ulim = 9; |