aboutsummaryrefslogtreecommitdiffstats
path: root/argparse.c
diff options
context:
space:
mode:
authorPA4WDH2024-08-26 19:56:17 +0200
committerPA4WDH2024-08-26 19:56:17 +0200
commitf47ea91e2d1b04aea2c23f40c98801e948d7a950 (patch)
treea949edc52e7ad7bbb2413107fd29ab1dc5af85c9 /argparse.c
parentSmall fixes in cpulist.c (diff)
downloadcputemp2maxfreq-f47ea91e2d1b04aea2c23f40c98801e948d7a950.tar.gz
cputemp2maxfreq-f47ea91e2d1b04aea2c23f40c98801e948d7a950.tar.bz2
cputemp2maxfreq-f47ea91e2d1b04aea2c23f40c98801e948d7a950.zip
Add more compiler warnings
Diffstat (limited to 'argparse.c')
-rw-r--r--argparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/argparse.c b/argparse.c
index 19a6493..e748b3e 100644
--- a/argparse.c
+++ b/argparse.c
@@ -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':