summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-01-02 19:25:33 +0100
committerDan McGee <dan@archlinux.org>2011-01-02 19:25:33 +0100
commitc41edf49bead531b334d8a68ab692fa6f3295f63 (patch)
tree2c319385ec8f0ed5d90e07719598bcf475a7658e /lib/libalpm
parent08d885fda5c9ccb3ac68faccc7c75e440ac71113 (diff)
downloadpacman-c41edf49bead531b334d8a68ab692fa6f3295f63.tar.gz
pacman-c41edf49bead531b334d8a68ab692fa6f3295f63.tar.xz
Fix function indentation
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/util.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index d34eab5e..e5260797 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -684,36 +684,36 @@ int _alpm_lstat(const char *path, struct stat *buf)
#ifdef HAVE_LIBSSL
static int md5_file(const char *path, unsigned char output[16])
{
- FILE *f;
- size_t n;
- MD5_CTX ctx;
- unsigned char *buf;
+ FILE *f;
+ size_t n;
+ MD5_CTX ctx;
+ unsigned char *buf;
- CALLOC(buf, 8192, sizeof(unsigned char), return(1));
+ CALLOC(buf, 8192, sizeof(unsigned char), return(1));
- if((f = fopen(path, "rb")) == NULL) {
- free(buf);
- return(1);
- }
+ if((f = fopen(path, "rb")) == NULL) {
+ free(buf);
+ return(1);
+ }
- MD5_Init(&ctx);
+ MD5_Init(&ctx);
- while((n = fread(buf, 1, sizeof(buf), f)) > 0) {
- MD5_Update(&ctx, buf, n);
- }
+ while((n = fread(buf, 1, sizeof(buf), f)) > 0) {
+ MD5_Update(&ctx, buf, n);
+ }
- MD5_Final(output, &ctx);
+ MD5_Final(output, &ctx);
- memset(&ctx, 0, sizeof(MD5_CTX));
- free(buf);
+ memset(&ctx, 0, sizeof(MD5_CTX));
+ free(buf);
- if(ferror(f) != 0) {
- fclose(f);
- return(2);
- }
+ if(ferror(f) != 0) {
+ fclose(f);
+ return(2);
+ }
- fclose(f);
- return(0);
+ fclose(f);
+ return(0);
}
#endif