[PATCH] fix typos in source docs
paul_c <[email protected]> Sat, 1 Sep 2012 18:45:25 +0100
| Newsgroups | gmane.comp.sysutils.lcdproc |
|---|---|
| Message-ID | <[email protected]> |
Whilst looking at some of the code for the LCDproc server, I noticed a few typos - The attached (trivial) patch cleans up the ones I've spotted to date. Regards, Paul. _______________________________________________ LCDproc mailing list [email protected] http://lists.omnipotent.net/mailman/listinfo/lcdproc
code-doc-typo.patch
(text/x-diff, 3.6 KB)
Index: server/driver.c =================================================================== RCS file: /cvsroot/lcdproc/lcdproc/server/driver.c,v retrieving revision 1.25 diff -u -w -p -r1.25 driver.c --- server/driver.c 10 Feb 2011 22:57:47 -0000 1.25 +++ server/driver.c 1 Sep 2012 17:41:49 -0000 @@ -85,7 +85,7 @@ static int driver_store_private_ptr(Driv /** Create a driver object. * Allocate memory for the driver object, load it from file and bind its symbols. - * \param name Name under which the driver shall be kbown forther on. + * \param name Name under which the driver shall be known further on. * \param filename Name of the file containing the drivers object code. * \return Pointer to the freshly created driver; \c NULL on error. */ @@ -290,7 +290,7 @@ driver_bind_module(Driver *driver) /** Unload a Driver's module. - * \param driver Pointer to he driver object. + * \param driver Pointer to the driver object. * \retval <0 Error. * \retval 0 Success. */ @@ -308,7 +308,7 @@ driver_unbind_module(Driver *driver) /** Determine if the driver is an output driver. * This is done by checking whether the driver knows dimensions * and supports the methods that write to the screen. - * \param driver Pointer to he driver object. + * \param driver Pointer to the driver object. * \retval 0 No, it is not an output driver. * \retval 1 Yes, it is an output driver. */ @@ -325,7 +325,7 @@ driver_does_output(Driver *driver) /** Determine if the driver is an input driver. * This is done by checking whether the driver supports the \c get_key method. - * \param driver Pointer to he driver object. + * \param driver Pointer to the driver object. * \retval 0 No, it is not an input driver. * \retval 1 Yes, it is an input driver. */ @@ -337,7 +337,7 @@ driver_does_input(Driver *driver) /** Tell if the driver needs to stay in the foreground. - * \param driver Pointer to he driver object. + * \param driver Pointer to the driver object. * \retval 0 No, the driver does not need to stay in the foreground. * \retval 1 Yes, the driver needs to stay in the foreground. */ @@ -349,7 +349,7 @@ driver_stay_in_foreground(Driver *driver /** Tell if the driver supports multiple instances. - * \param driver Pointer to he driver object. + * \param driver Pointer to the driver object. * \retval 0 No, it doesn't. * \retval 1 Yes, it does. */ Index: server/menu.c =================================================================== RCS file: /cvsroot/lcdproc/lcdproc/server/menu.c,v retrieving revision 1.42 diff -u -w -p -r1.42 menu.c --- server/menu.c 22 Feb 2012 22:25:32 -0000 1.42 +++ server/menu.c 1 Sep 2012 17:41:49 -0000 @@ -75,7 +75,7 @@ menu_get_subitem(Menu *menu, int index) * Search a menu for an entry by its ID, ignoring hidden entries. * \param menu Pointer to menu to search in. * \param item_id ID to search for. - * \return Index of subitem if found, and -1 otherwise.r + * \return Index of subitem if found, and -1 otherwise. */ static int menu_get_index_of(Menu *menu, char *item_id) Index: server/widget.c =================================================================== RCS file: /cvsroot/lcdproc/lcdproc/server/widget.c,v retrieving revision 1.26 diff -u -w -p -r1.26 widget.c --- server/widget.c 5 Jan 2011 23:34:37 -0000 1.26 +++ server/widget.c 1 Sep 2012 17:41:49 -0000 @@ -177,7 +177,7 @@ widget_destroy(Widget *w) /** Convert a widget type name to a widget type. - * \param typename Name of the idget type. + * \param typename Name of the widget type. * \return Widget type. */ WidgetType