diff options
author | PA4WDH | 2024-08-26 19:56:17 +0200 |
---|---|---|
committer | PA4WDH | 2024-08-26 19:56:17 +0200 |
commit | f47ea91e2d1b04aea2c23f40c98801e948d7a950 (patch) | |
tree | a949edc52e7ad7bbb2413107fd29ab1dc5af85c9 /argparse.c | |
parent | Small fixes in cpulist.c (diff) | |
download | cputemp2maxfreq-f47ea91e2d1b04aea2c23f40c98801e948d7a950.tar.gz cputemp2maxfreq-f47ea91e2d1b04aea2c23f40c98801e948d7a950.tar.bz2 cputemp2maxfreq-f47ea91e2d1b04aea2c23f40c98801e948d7a950.zip |
Add more compiler warnings
Diffstat (limited to 'argparse.c')
-rw-r--r-- | argparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -120,14 +120,14 @@ void argparse(int argc, char **argv) userconfig.log_data=1; break; case 'p': - userconfig.interval=strtoll(optarg,NULL,10); + userconfig.interval=(unsigned int) strtoll(optarg,NULL,10); break; case 'P': if (strcmp(optarg,"all")==0) { userconfig.cpu=-1; } else { - userconfig.cpu=strtoll(optarg,NULL,10); + userconfig.cpu=(int) strtoll(optarg,NULL,10); } break; case 's': |