File tree Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ void print_cpu_info(void)
24
24
if (cpu_file )
25
25
{
26
26
char line [128 ];
27
- int lines = 0 ;
27
+ uint8_t lines = 0 ;
28
28
while (fgets (line , sizeof (line ), cpu_file ) && lines < 19 )
29
29
{
30
30
printf ("| %s" , line );
31
- lines ++ ;
31
+ ++ lines ;
32
32
}
33
33
fclose (cpu_file );
34
34
printf ("|____________\n\n" );
Original file line number Diff line number Diff line change 11
11
#ifndef CPU_INFO_H_SENTRY
12
12
#define CPU_INFO_H_SENTRY
13
13
#include <stdio.h>
14
+ #include <stdint.h>
14
15
15
16
void print_cpu_info (void );
16
17
void print_full_cpu_info (void );
Original file line number Diff line number Diff line change @@ -93,5 +93,5 @@ void print_hlp_info(void)
93
93
void print_ver_info (void )
94
94
{
95
95
print_banner ();
96
- printf ("spynix v4.0.0 \n\nFor more info visit: https://github.com/git-user-cpp/spynix\n" );
96
+ printf ("spynix v4.0.1 \n\nFor more info visit: https://github.com/git-user-cpp/spynix\n" );
97
97
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ void print_net_info(char *hostname)
14
14
{
15
15
struct hostent * host = gethostbyname (hostname );
16
16
struct ifaddrs * ifaddr , * ifa ;
17
- int i ;
17
+ uint8_t i ;
18
18
19
19
if (host == NULL )
20
20
{
@@ -25,7 +25,7 @@ void print_net_info(char *hostname)
25
25
{
26
26
printf ("Host Name: %s\n" , host -> h_name );
27
27
printf ("IP Address: " );
28
- for (i = 0 ; host -> h_addr_list [i ] != NULL ; i ++ )
28
+ for (i = 0 ; host -> h_addr_list [i ] != NULL ; ++ i )
29
29
{
30
30
printf ("%s " , inet_ntoa (* (struct in_addr * )host -> h_addr_list [i ]));
31
31
}
Original file line number Diff line number Diff line change 16
16
#include <sys/socket.h>
17
17
#include <netdb.h>
18
18
#include <arpa/inet.h>
19
+ #include <stdint.h>
19
20
20
21
void print_net_info (char * hostname );
21
22
#endif
You can’t perform that action at this time.
0 commit comments