~ken-vandine/libiphb/initial_package

« back to all changes in this revision

Viewing changes to src/libiphb.c

  • Committer: Simo Piiroinen
  • Date: 2014-09-23 05:28:44 UTC
  • mfrom: (38.1.1)
  • Revision ID: git-v1:0b34973256cb95ced3a13c0d529ac8d70b455cba
Merge pull request #9 from spiiroin/empty_wait_cancels

Allow canceling of iphb wakeups by iphb_wait() with zero wakeup range

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
  struct _iphb_req_t  req = {IPHB_WAIT};
172
172
  struct _iphb_wait_resp_t resp = {0};
173
173
 
174
 
  if (!iphbh || mintime > maxtime || maxtime == 0) {
 
174
  if( !iphbh || mintime > maxtime ) {
175
175
    errno = EINVAL;
176
176
    return (time_t)-1;
177
177
  }