Changeset 488913a


Ignore:
Timestamp:
Mar 6, 2011, 2:12:16 PM (14 years ago)
Author:
Karl Ramm <kcr@1ts.org>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
c73a22d
Parents:
e3a75ed
git-author:
Karl Ramm <kcr@1ts.org> (02/11/11 19:05:01)
git-committer:
Karl Ramm <kcr@1ts.org> (03/06/11 14:12:16)
Message:
owl_zephyr_initialize only needs one zephyr library return value

It doesn't need two separate return-value variabels, and the one
should be a Code_t.

Reviewed-By: Nelson Elhage <nelhage@nelhage.com>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    re3a75ed r488913a  
    3131void owl_zephyr_initialize(void)
    3232{
    33   int ret;
     33  Code_t ret;
    3434  struct servent *sp;
    3535  struct sockaddr_in sin;
    3636  ZNotice_t req;
    37   Code_t code;
    3837
    3938  /*
     
    6968  req.z_message_len = 0;
    7069
    71   if ((code = ZSetDestAddr(&sin)) != ZERR_NONE) {
    72     owl_function_error("Initializing Zephyr: %s", error_message(code));
     70  if ((ret = ZSetDestAddr(&sin)) != ZERR_NONE) {
     71    owl_function_error("Initializing Zephyr: %s", error_message(ret));
    7372    return;
    7473  }
    7574
    76   if ((code = ZSendNotice(&req, ZNOAUTH)) != ZERR_NONE) {
    77     owl_function_error("Initializing Zephyr: %s", error_message(code));
     75  if ((ret = ZSendNotice(&req, ZNOAUTH)) != ZERR_NONE) {
     76    owl_function_error("Initializing Zephyr: %s", error_message(ret));
    7877    return;
    7978  }
Note: See TracChangeset for help on using the changeset viewer.