From c6a41be8b987c454d1b24a13a4962a33833877cf Mon Sep 17 00:00:00 2001 From: yuqing Date: Wed, 3 Feb 2016 16:03:08 +0800 Subject: [PATCH] add comments --- src/sockopt.h | 6 +++--- src/tests/test_mblock.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sockopt.h b/src/sockopt.h index 43f6fe8..14c4c27 100644 --- a/src/sockopt.h +++ b/src/sockopt.h @@ -17,7 +17,7 @@ #define FAST_WRITE_BUFF_SIZE 256 * 1024 typedef struct fast_if_config { - char name[IF_NAMESIZE]; + char name[IF_NAMESIZE]; //if name char mac[32]; char ipv4[IP_ADDRESS_SIZE]; char ipv6[48]; @@ -340,8 +340,8 @@ int gethostaddrs(char **if_alias_prefixes, const int prefix_count, \ /** get local if configs * parameters: * if_configs: store the if configs - * max_count: max ip address (max ip_addrs elements) - * count: store the ip address count + * max_count: max ifconfig elements + * count: store the ifconfig count * return: error no, 0 success, != 0 fail */ int getifconfigs(FastIFConfig *if_configs, const int max_count, int *count); diff --git a/src/tests/test_mblock.c b/src/tests/test_mblock.c index 3bbb155..be9b593 100644 --- a/src/tests/test_mblock.c +++ b/src/tests/test_mblock.c @@ -121,7 +121,7 @@ int main(int argc, char *argv[]) printf("procs: %d\n", info.procs); } - stat("/etc/passwd", &st); + stat("/dev/zero", &st); printf("file inode: %ld\n", (long)st.st_ino); printf("file device: %ld\n", (long)st.st_dev); printf("file access time: %d.%ld\n", (int)st.st_atime, st.st_atimensec);