index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/sync.h | 2 |
diff --git a/lib/libalpm/sync.h b/lib/libalpm/sync.h index 615e17d2..59c42064 100644 --- a/lib/libalpm/sync.h +++ b/lib/libalpm/sync.h @@ -31,6 +31,8 @@ typedef struct __pmsyncpkg_t { void *data; } pmsyncpkg_t; +#define FREESYNC(p) do { if(p) { sync_free(p); p = NULL; } } while(0) + pmsyncpkg_t *sync_new(int type, pmpkg_t *spkg, void *data); void sync_free(pmsyncpkg_t *sync); |