comparison mcabber/src/utils.c @ 1440:72dd9c768f58

Remove safe_usleep() -- unused now
author Mikael Berthe <mikael@lilotux.net>
date Tue, 26 Feb 2008 22:36:40 +0100
parents 366ef500c522
children 83e275dca409
comparison
equal deleted inserted replaced
1439:fd09c95bc2b5 1440:72dd9c768f58
299 retval += tzoff; 299 retval += tzoff;
300 300
301 return retval; 301 return retval;
302 } 302 }
303 303
304 // Should only be used for delays < 1s
305 inline void safe_usleep(unsigned int usec)
306 {
307 struct timespec req;
308 req.tv_sec = 0;
309 req.tv_nsec = (long)usec * 1000L;
310 nanosleep(&req, NULL);
311 }
312
313 /** 304 /**
314 * Derived from libjabber/jid.c, because the libjabber version is not 305 * Derived from libjabber/jid.c, because the libjabber version is not
315 * really convenient for our usage. 306 * really convenient for our usage.
316 * 307 *
317 * Check if the full JID is valid 308 * Check if the full JID is valid