Project

General

Profile

Actions

Submit #2303

closed

SUN_LEN() usage

Added by tuxillo almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
02/09/2012
Due date:
% Done:

0%

Estimated time:

Description

Alex,

Shouldn't we pass a SUN_LEN(un_addr) here instead a plain sizeof(un_addr)?

Cheers,
Antonio Huete

Actions #1

Updated by tuxillo almost 13 years ago

  • Assignee changed from Anonymous to alexh
Actions #2

Updated by tuxillo almost 13 years ago

  • Status changed from New to Closed

Hi,

I haven't been able to find a reference to SUN_LEN() in Opengroup. Also, its usage seems merely to save up some bytes but it adds extra overhead by using strlen, which in this case was no issue at all. Passing the whole struct size is fine.

Closing this one.

Cheers,
Antonio Huete

Actions

Also available in: Atom PDF