random s/short/int/

add_cmd                                             1189    1190      +1
xconnect_ftpdata                                     118     117      -1
data_align                                            86      84      -2
process_files                                       2101    2096      -5
forkexec                                            1345    1334     -11
This commit is contained in:
Denis Vlasenko
2008-02-16 13:18:17 +00:00
parent 069e347863
commit 284d0faed6
17 changed files with 46 additions and 42 deletions

View File

@ -102,7 +102,7 @@ const char *ll_proto_n2a(unsigned short id, char *buf, int len)
id = ntohs(id);
for (i=0; i < ARRAY_SIZE(llproto_names); i++) {
for (i = 0; i < ARRAY_SIZE(llproto_names); i++) {
if (llproto_names[i].id == id)
return llproto_names[i].name;
}
@ -113,7 +113,7 @@ const char *ll_proto_n2a(unsigned short id, char *buf, int len)
int ll_proto_a2n(unsigned short *id, char *buf)
{
int i;
for (i=0; i < ARRAY_SIZE(llproto_names); i++) {
for (i = 0; i < ARRAY_SIZE(llproto_names); i++) {
if (strcasecmp(llproto_names[i].name, buf) == 0) {
*id = htons(llproto_names[i].id);
return 0;

View File

@ -42,8 +42,8 @@ typedef struct
#endif
struct dn_naddr {
unsigned short a_len;
unsigned char a_addr[DN_MAXADDL];
unsigned short a_len;
unsigned char a_addr[DN_MAXADDL];
};
#define IPX_NODE_LEN 6