reference/network/functions/getprotobyname.xml
0c9c2dd669fe9395eaa73d487fbd160f9057429a
...
...
@@ -9,12 +9,12 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>int</type><methodname>getprotobyname</methodname>
13
-
<methodparam><type>string</type><parameter>name</parameter></methodparam>
12
+
<type class="union"><type>int</type><type>false</type></type><methodname>getprotobyname</methodname>
13
+
<methodparam><type>string</type><parameter>protocol</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
<function>getprotobyname</function> returns the protocol number
17
-
associated with the protocol <parameter>name</parameter> as per
17
+
associated with the protocol <parameter>protocol</parameter> as per
18
18
<filename>/etc/protocols</filename>.
19
19
</para>
20
20
</refsect1>
...
...
@@ -24,7 +24,7 @@
24
24
<para>
25
25
<variablelist>
26
26
<varlistentry>
27
-
<term><parameter>name</parameter></term>
27
+
<term><parameter>protocol</parameter></term>
28
28
<listitem>
29
29
<para>
30
30
The protocol name.
...
...
@@ -74,7 +74,6 @@ if ($get_prot === FALSE) {
74
74
</refsect1>
75
75

76
76
</refentry>
77
-

78
77
<!-- Keep this comment at the end of the file
79
78
Local variables:
80
79
mode: sgml
81
80