Module: xenomai-abe
Branch: analogy
Commit: a81b580e46fc700810c9dfb1e4da5d1f69b317c2
URL:
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=a81b580e46fc700810c9dfb1e4da5d1f69b317c2
Author: Alexis Berlemont alexis.berlem...@gmail.com
Date: Wed Oct 28 01:00:40 2009 +0100
analogy: fix comments
---
src/utils/analogy/analogy_config.c | 22
src/utils/analogy/cmd_read.c | 50 ++--
src/utils/analogy/cmd_write.c | 44
src/utils/analogy/insn_read.c | 32 +++---
4 files changed, 74 insertions(+), 74 deletions(-)
diff --git a/src/utils/analogy/analogy_config.c
b/src/utils/analogy/analogy_config.c
index a40a178..316dcd4 100644
--- a/src/utils/analogy/analogy_config.c
+++ b/src/utils/analogy/analogy_config.c
@@ -31,12 +31,12 @@
#include analogy/analogy.h
-/* Declares precompilation constants */
+/* Declare precompilation constants */
#define __NBMIN_ARG 2
#define __NBMAX_ARG 3
#define __OPTS_DELIMITER ,
-/* Declares prog variables */
+/* Declare prog variables */
int vlevel = 1;
int unatt_act = 0;
struct option a4l_conf_opts[] = {
@@ -55,7 +55,7 @@ int compute_opts(char *opts, unsigned int *nb, unsigned int
*res)
int ret = 0, len, ofs;
- /* Checks arg and inits it */
+ /* Check arg and inits it */
if (nb == NULL)
return -EINVAL;
*nb = 0;
@@ -103,10 +103,10 @@ int main(int argc, char *argv[])
a4l_lnkdesc_t lnkdsc;
int chk_nb, ret = 0, fd = -1;
- /* Inits the descriptor structure */
+ /* Init the descriptor structure */
memset(lnkdsc, 0, sizeof(a4l_lnkdesc_t));
- /* Computes arguments */
+ /* Compute arguments */
while ((c =
getopt_long(argc, argv, hvqVrR:W:, a4l_conf_opts,
NULL)) = 0) {
@@ -133,23 +133,23 @@ int main(int argc, char *argv[])
}
}
- /* Checks the last arguments */
+ /* Check the last arguments */
chk_nb = (unatt_act == 0) ? __NBMIN_ARG : __NBMIN_ARG - 1;
if (argc - optind chk_nb) {
do_print_usage();
goto out_a4l_config;
}
- /* Gets the device file name */
+ /* Get the device file name */
devfile = argv[optind];
- /* Fills the descriptor with the driver name */
+ /* Fill the descriptor with the driver name */
if (unatt_act == 0) {
lnkdsc.bname = argv[optind + 1];
lnkdsc.bname_size = strlen(argv[optind + 1]);
}
- /* Handles the last arguments: the driver-specific args */
+ /* Handle the last arguments: the driver-specific args */
if (unatt_act == 1 || argc - optind != __NBMAX_ARG)
lnkdsc.opts_size = 0;
else {
@@ -182,7 +182,7 @@ int main(int argc, char *argv[])
}
}
- /* Opens the specified file */
+ /* Open the specified file */
fd = a4l_sys_open(devfile);
if (fd 0) {
ret = fd;
@@ -191,7 +191,7 @@ int main(int argc, char *argv[])
goto out_a4l_config;
}
- /* Triggers the ioctl */
+ /* Trigger the ioctl */
if (unatt_act == 0)
ret = a4l_sys_attach(fd, lnkdsc);
else
diff --git a/src/utils/analogy/cmd_read.c b/src/utils/analogy/cmd_read.c
index c71c339..90518d9 100644
--- a/src/utils/analogy/cmd_read.c
+++ b/src/utils/analogy/cmd_read.c
@@ -111,7 +111,7 @@ int main(int argc, char *argv[])
void *map = NULL;
a4l_desc_t dsc;
- /* Computes arguments */
+ /* Compute arguments */
while ((ret = getopt_long(argc,
argv,
vrd:s:S:c:mh, cmd_read_opts, NULL)) = 0) {
@@ -144,7 +144,7 @@ int main(int argc, char *argv[])
}
}
- /* Recovers the channels to compute */
+ /* Recover the channels to compute */
do {
cmd.nb_chan++;
len = strlen(str_chans);
@@ -156,7 +156,7 @@ int main(int argc, char *argv[])
str_chans += ofs + 1;
} while (len != ofs);
- /* Updates the command structure */
+ /* Update the command structure */
cmd.scan_end_arg = cmd.nb_chan;
if (real_time != 0) {
@@ -164,7 +164,7 @@ int main(int argc, char *argv[])
if (verbose != 0)
printf(cmd_read: switching to real-time mode\n);
- /* Prevents any memory-swapping for this program */
+ /* Prevent any memory-swapping for this program */
ret = mlockall(MCL_CURRENT | MCL_FUTURE);
if (ret 0) {
ret = errno;
@@ -173,7 +173,7 @@ int main(int argc, char *argv[])
goto out_main;
}
- /* Turns the