Changeset 789462a for functions.c


Ignore:
Timestamp:
Apr 10, 2004, 8:01:56 PM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
f5729b7
Parents:
405d5e6
Message:
Do ntohs() when printing zephyr port in zephyr info
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r5e0b690 r789462a  
    33#include <unistd.h>
    44#include <signal.h>
     5#include <netinet/in.h>
    56#include <string.h>
    67#include <time.h>
     
    15581559      if (!owl_message_is_pseudo(m)) {
    15591560        owl_fmtext_append_normal(&fm, "\n");
    1560         sprintf(buff, "  Port      : %i\n", n->z_port);
     1561        sprintf(buff, "  Port      : %i\n", ntohs(n->z_port));
    15611562        owl_fmtext_append_normal(&fm, buff);
    15621563
Note: See TracChangeset for help on using the changeset viewer.