aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-08-25 06:03:25 -0400
committerMike Frysinger <vapier@gentoo.org>2009-08-25 06:03:25 -0400
commit1a366eac44041eb6989374e6773dcb7ec084b7ab (patch)
treeac037810ce064d8138059aa0f239071c8af3c014 /libsbutil/sbutil.h
parentdrop force pic flags (diff)
downloadsandbox-1a366eac44041eb6989374e6773dcb7ec084b7ab.tar.gz
sandbox-1a366eac44041eb6989374e6773dcb7ec084b7ab.tar.bz2
sandbox-1a366eac44041eb6989374e6773dcb7ec084b7ab.zip
libsbutil: kill off confusing SB_WRITE macro
The SB_WRITE() macro makes using sb_write() confusing, so convert the two small users and kill it off. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsbutil/sbutil.h')
-rw-r--r--libsbutil/sbutil.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/libsbutil/sbutil.h b/libsbutil/sbutil.h
index 523cf01..e232b31 100644
--- a/libsbutil/sbutil.h
+++ b/libsbutil/sbutil.h
@@ -106,15 +106,6 @@ __attribute__((__format__(__printf__, 3, 4))) void sb_efunc(const char *color, c
#define sb_fprintf(fp, ...) sb_fdprintf(fileno(fp), __VA_ARGS__)
#define sb_vfprintf(fp, ...) sb_vfdprintf(fileno(fp), __VA_ARGS__)
-/* Macro for sb_read() to goto an label on error */
-#define SB_WRITE(_fd, _buf, _count, _error) \
- do { \
- size_t _n; \
- _n = sb_write(_fd, _buf, _count); \
- if (-1 == _n) \
- goto _error; \
- } while (0)
-
/* Memory functions */
void *__xcalloc(size_t nmemb, size_t size, const char *file, const char *func, size_t line);
void *__xmalloc(size_t size, const char *file, const char *func, size_t line);