lkml.org 
[lkml]   [1996]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: getservbyport (fwd)
On Tue, 14 May 1996, Bartlomiej Czardybon wrote:

> I've got the question: why this produces shit! ?

> if ((serv = getservbyport(23, "tcp")) == NULL) {
^^^^^^^^^ use htons(23)

the man page isnt too explicit about this. (but it's still obvious ...)

-- mingo



\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.045 / U:3.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site