Skip to content

Commit

Permalink
Fix minor style issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
yak1ex committed Jul 23, 2023
1 parent 0ce6be2 commit 8752dde
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion cgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static const struct cgi_dispatcher cgi_dispatchers[] = {
#endif
#ifdef FEATURE_FORWARD_CLASS
{ "forward-class",
cgi_forward_class,
cgi_forward_class,
"View & change the forward class state",
FALSE },
#endif /* def FEATURE_FORWARD_CLASS */
Expand Down
6 changes: 3 additions & 3 deletions parsers.c
Original file line number Diff line number Diff line change
Expand Up @@ -5128,13 +5128,13 @@ static void create_content_length_header(unsigned long long content_length,
*
* Description : Helper for client_referrer to forge a referer as
* 'http://[hostname:port/dir/index.html' or
'http://[hostname:port/dir/' to fool stupid
* checks for in-site links
* 'http://[hostname:port/dir/' to fool stupid
* checks for in-site links
*
* Parameters :
* 1 : header = Pointer to header pointer
* 2 : url = Target URL
* 3 : is_index = Boolean to signal whether index or
* 3 : is_index = Boolean to signal whether index or
* directory (0 : directory / 1 : index)
* 4 : is_add = Boolean to signal whether add or hide
* (0 : hide / 1 : add)
Expand Down
4 changes: 2 additions & 2 deletions project.h
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ struct client_state
*/
struct certs_chain server_certs_chain;
#endif

#ifdef FEATURE_FORWARD_CLASS
/** Forward class state associated with this client */
int forward_class_state[MAX_FORWARD_CLASSES];
Expand Down Expand Up @@ -1657,7 +1657,7 @@ struct configuration_spec
/** Information about manual taggers. */
struct manual_tagger_spec manual_tagger[MAX_MANUAL_TAGGERS];
#endif /* def FEATURE_MANUAL_TAGGER */

/** The configuration file object. */
struct file_list *config_file_list;

Expand Down
9 changes: 4 additions & 5 deletions templates/forward-class
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
# Template files are written win plain HTML, with a few
# additions:
#
#
# - Lines that start with a '#' character like this one
# are ignored
#
Expand All @@ -23,7 +23,7 @@
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
Expand Down Expand Up @@ -143,7 +143,7 @@ function sync()
<td class="box">
<h2>Bookmarklets</h2>
<p>Here are some bookmarklets to allow you to easily access a
"mini" version of this page. They are known to work with MS
"mini" version of this page. They are known to work with MS
Internet Explorer, Netscape and Mozilla, but should work equally
well in other browsers which support JavaScript. They are designed
to run directly from your bookmarks - <b>not</b> by clicking the
Expand Down Expand Up @@ -198,13 +198,12 @@ function sync()
</td>
</tr>
<!-- if-have-help-info-end@ -->


<tr>
<td>
<p class="small">Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></p>
</td>
</tr>
</tr>
</table>

</body>
Expand Down
4 changes: 2 additions & 2 deletions templates/forward-class-mini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
# Template files are written win plain HTML, with a few
# additions:
#
#
# - Lines that start with a '#' character like this one
# are ignored
#
Expand All @@ -23,7 +23,7 @@
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
Expand Down
4 changes: 2 additions & 2 deletions w32log.c
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ HMENU GetTagSubMenu(HMENU hmenu)
{
char szItemName[256];
int nMax = GetMenuItemCount(hmenu), i;
MENUITEMINFO mii = { sizeof(MENUITEMINFO), MIIM_SUBMENU | MIIM_STRING };
MENUITEMINFO mii = { sizeof(MENUITEMINFO), MIIM_SUBMENU | MIIM_STRING };
mii.dwTypeData = szItemName;
mii.cch = sizeof(szItemName);

Expand Down Expand Up @@ -1311,7 +1311,7 @@ HMENU GetForwardSubMenu(HMENU hmenu)
{
char szItemName[256];
int nMax = GetMenuItemCount(hmenu), i;
MENUITEMINFO mii = { sizeof(MENUITEMINFO), MIIM_SUBMENU | MIIM_STRING };
MENUITEMINFO mii = { sizeof(MENUITEMINFO), MIIM_SUBMENU | MIIM_STRING };
mii.dwTypeData = szItemName;
mii.cch = sizeof(szItemName);

Expand Down

0 comments on commit 8752dde

Please sign in to comment.