[Pkg-wmaker-commits] [wmifinfo] 31/49: wmifinfo: Remove C++ style comments.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Tue Aug 18 02:07:43 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmifinfo.
commit ab9fd4ca38b1c3551cea93a61f9ddecb2683331a
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Mon Dec 8 21:01:52 2014 -0600
wmifinfo: Remove C++ style comments.
---
wmifinfo.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/wmifinfo.c b/wmifinfo.c
index 3ddf026..adb323d 100644
--- a/wmifinfo.c
+++ b/wmifinfo.c
@@ -189,7 +189,7 @@ int main(int argc, char *argv[])
WindGustColor, DataColor, StationTimeColor);
}
- // Initialize global variables
+ /* Initialize global variables */
fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP);
ifc.ifc_len = sizeof(struct ifreq) * 10;
@@ -239,7 +239,7 @@ int main(int argc, char *argv[])
if(ifinfo.nm) drawipaddr(ifinfo.nm, 1);
if(ifinfo.gw) drawipaddr(ifinfo.gw, 2);
- // WLAN signal level
+ /* WLAN signal level */
#ifdef linux
x = ifinfo.sl/4;
@@ -249,7 +249,7 @@ int main(int argc, char *argv[])
if(x>13) x=13;
copyXPMArea(4, 82, x*4, 4, 6, 53);
- // LED
+ /* LED */
x=0;
if(exec_busy) {
@@ -442,7 +442,7 @@ int getifinfo(char *ifname, struct ifinfo_t *info)
strcpy(ifr.ifr_name, ifname);
- // Get status (UP/DOWN)
+ /* Get status (UP/DOWN) */
if(ioctl(fd, SIOCGIFFLAGS, &ifr) != -1) {
sa = (struct sockaddr_in *)&(ifr.ifr_addr);
@@ -451,7 +451,7 @@ int getifinfo(char *ifname, struct ifinfo_t *info)
info->state = 0;
}
- // Get mac address
+ /* Get mac address */
#ifdef linux
if(ioctl(fd, SIOCGIFHWADDR, &ifr) != -1) {
@@ -486,7 +486,7 @@ int getifinfo(char *ifname, struct ifinfo_t *info)
}
#endif
- // Get IP address
+ /* Get IP address */
if(ioctl(fd, SIOCGIFADDR, &ifr) != -1) {
sa = (struct sockaddr_in *)&(ifr.ifr_addr);
@@ -495,7 +495,7 @@ int getifinfo(char *ifname, struct ifinfo_t *info)
info->ip = 0;
}
- // Get netmask
+ /* Get netmask */
if(ioctl(fd, SIOCGIFNETMASK, &ifr) != -1) {
sa = (struct sockaddr_in *)&(ifr.ifr_addr);
@@ -504,7 +504,7 @@ int getifinfo(char *ifname, struct ifinfo_t *info)
info->nm = 0;
}
- // Get default gateway if on this interface
+ /* Get default gateway if on this interface */
info->gw = 0;
#ifdef linux
@@ -569,7 +569,7 @@ int getifinfo(char *ifname, struct ifinfo_t *info)
}
#endif
- // Get wireless link status if wireless
+ /* Get wireless link status if wireless */
info->sl = 0;
#ifdef linux
@@ -606,7 +606,7 @@ int getifinfo(char *ifname, struct ifinfo_t *info)
}
#endif
- // Get Total tx/rx bytes
+ /* Get Total tx/rx bytes */
#ifdef linux
if(fdev != NULL) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmifinfo.git
More information about the Pkg-wmaker-commits
mailing list