remove trailing whitespace
authorMichael Schroeder <mls@suse.de>
Wed, 16 Oct 2013 16:29:13 +0000 (18:29 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 16 Oct 2013 16:29:13 +0000 (18:29 +0200)
ext/repo_arch.c
ext/repo_cudf.c
ext/repo_helix.c
ext/repo_pubkey.c
ext/repo_rpmdb.c
ext/repo_susetags.c
ext/repo_zyppdb.c
ext/solv_pgpvrfy.c
ext/solv_xfopen.c
ext/testcase.c

index e09d838..f6b9089 100644 (file)
@@ -306,7 +306,7 @@ adddep(Repo *repo, Offset olddeps, char *line)
     {
       int flags = 0;
       for (;; p++)
-       {  
+       {
          if (*p == '<')
            flags |= REL_LT;
          else if (*p == '=')
index d62ab38..316887b 100644 (file)
@@ -157,7 +157,7 @@ finishpackage(Pool *pool, Solvable *s, int keep, Queue *job)
   if (!s->evr)
     s->evr = ID_EMPTY;
   sid = pool_rel2id(pool, s->name, s->evr, REL_EQ, 1);
-  s->provides = repo_addid_dep(s->repo, s->provides, sid, 0); 
+  s->provides = repo_addid_dep(s->repo, s->provides, sid, 0);
   if (!job || !pool->installed || s->repo != pool->installed)
     return;
   if (keep == KEEP_VERSION)
@@ -195,7 +195,7 @@ repo_add_cudf(Repo *repo, Repo *installedrepo, FILE *fp, Queue *job, int flags)
   bufa = 4096;
   bufl = 0;
   s = 0;
+
   while (fgets(buf + bufl, bufa - bufl, fp) > 0)
     {
       bufl += strlen(buf + bufl);
index d2e50e8..b94bbcf 100644 (file)
@@ -7,10 +7,10 @@
 
 /*
  * repo_helix.c
- * 
+ *
  * Parse 'helix' XML representation
  * and create 'repo'
- * 
+ *
  * A bit of history: "Helix Code" was the name of the company that
  * wrote Red Carpet. The company was later renamed to Ximian.
  * The Red Carpet solver was merged into the ZYPP project, the
@@ -200,7 +200,7 @@ evr2id(Pool *pool, Parsedata *pd, const char *e, const char *v, const char *r)
       if (v2 > v && *v2 == ':')
        e = "0";
     }
-  
+
   /* compute length of Id string */
   l = 1;  /* for the \0 */
   if (e)
@@ -384,7 +384,7 @@ adddep(Pool *pool, Parsedata *pd, unsigned int olddeps, const char **atts, Id ma
 /*
  * XML callback
  * <name>
- * 
+ *
  */
 
 static void XMLCALL
@@ -424,7 +424,7 @@ startElement(void *userData, const char *name, const char **atts)
 #endif
       return;
     }
-  
+
   /* set new state */
   pd->state = sw->to;
 
@@ -543,7 +543,7 @@ static const char *findKernelFlavor(Parsedata *pd, Solvable *s)
 {
   Pool *pool = pd->pool;
   Id pid, *pidp;
-  
+
   if (s->provides)
     {
       pidp = pd->repo->idarraydata + s->provides;
@@ -551,7 +551,7 @@ static const char *findKernelFlavor(Parsedata *pd, Solvable *s)
        {
          Reldep *prd;
          const char *depname;
-         
+
          if (!ISRELDEP(pid))
            continue;               /* wrong provides name */
          prd = GETRELDEP(pool, pid);
@@ -571,8 +571,8 @@ static const char *findKernelFlavor(Parsedata *pd, Solvable *s)
          if (!ISRELDEP(pid))
            {
              depname = pool_id2str(pool, pid);
-           } 
-         else 
+           }
+         else
            {
              Reldep *prd = GETRELDEP(pool, pid);
              depname = pool_id2str(pool, prd->name);
@@ -589,7 +589,7 @@ static const char *findKernelFlavor(Parsedata *pd, Solvable *s)
 /*
  * XML callback
  * </name>
- * 
+ *
  * create Solvable from collected data
  */
 
@@ -639,7 +639,7 @@ endElement(void *userData, const char *name)
 
       /* see bugzilla bnc#190163 */
       flavor = findKernelFlavor(pd, s);
-      if (flavor) 
+      if (flavor)
        {
          char *cflavor = solv_strdup(flavor);  /* make pointer safe */
 
@@ -778,7 +778,7 @@ endElement(void *userData, const char *name)
 /*
  * XML callback
  * character data
- * 
+ *
  */
 
 static void XMLCALL
@@ -814,7 +814,7 @@ characterData(void *userData, const XML_Char *s, int len)
 /*
  * read 'helix' type xml from fp
  * add packages to pool/repo
- * 
+ *
  */
 
 int
@@ -831,7 +831,7 @@ repo_add_helix(Repo *repo, FILE *fp, int flags)
 
   now = solv_timems(0);
   data = repo_add_repodata(repo, flags);
-  
+
   /* prepare parsedata */
   memset(&pd, 0, sizeof(pd));
   for (i = 0, sw = stateswitches; sw->from != NUMSTATES; i++, sw++)
index 17558ba..5b778a2 100644 (file)
 #include "solv_pgpvrfy.h"
 #endif
 
-static void 
+static void
 setutf8string(Repodata *repodata, Id handle, Id tag, const char *str)
 {
   if (str[solv_validutf8(str)])
-    {    
+    {
       char *ustr = solv_latin1toutf8(str);     /* not utf8, assume latin1 */
       repodata_set_str(repodata, handle, tag, ustr);
       solv_free(ustr);
-    }    
-  else 
+    }
+  else
     repodata_set_str(repodata, handle, tag, str);
 }
 
index ceeb7fb..82961ca 100644 (file)
@@ -773,7 +773,7 @@ addchangelog(Repodata *data, Id handle, RpmHead *rpmhead)
   solv_free(cn);
 }
 
-static void 
+static void
 set_description_author(Repodata *data, Id handle, char *str)
 {
   char *aut, *p;
@@ -961,7 +961,7 @@ rpm2solv(Pool *pool, Repo *repo, Repodata *data, Solvable *s, RpmHead *rpmhead,
  */
 
 struct rpmdbstate {
-  Pool *pool; 
+  Pool *pool;
   char *rootdir;
 
   RpmHead *rpmhead;    /* header storage space */
index 4f0232a..440e2d5 100644 (file)
@@ -508,7 +508,7 @@ repo_add_susetags(Repo *repo, FILE *fp, Id defvendor, const char *language, int
     {
       Repodata *sdata;
       int i;
-      
+
       FOR_REPODATAS(repo, i, sdata)
        {
          int p;
@@ -538,7 +538,7 @@ repo_add_susetags(Repo *repo, FILE *fp, Id defvendor, const char *language, int
            }
        }
     }
-  
+
   /*
    * read complete file
    *
index a4487c3..135a155 100644 (file)
@@ -316,7 +316,7 @@ repo_add_zyppdb_products(Repo *repo, const char *dirpath, int flags)
   DIR *dir;
   FILE *fp;
   Repodata *data;
-  
+
   data = repo_add_repodata(repo, flags);
   memset(&pd, 0, sizeof(pd));
   pd.repo = repo;
index a62ca13..951856b 100644 (file)
@@ -315,7 +315,7 @@ mpdsa(int pl, mp_t *p, int ql, mp_t *q, mp_t *g, mp_t *y, mp_t *r, mp_t *s, int
   return 1;
 }
 
-static int 
+static int
 mprsa(int nl, mp_t *n, int el, mp_t *e, mp_t *m, mp_t *c)
 {
   mp_t *tmp;
index 63fec23..b0421bf 100644 (file)
@@ -35,14 +35,14 @@ FILE *fopencookie(void*, const char*, cookie_io_functions_t);
 
 
 static FILE *cookieopen(void *cookie, const char *mode,
-       ssize_t (*cread)(void *, char *, size_t), 
-       ssize_t (*cwrite)(void *, const char *, size_t), 
+       ssize_t (*cread)(void *, char *, size_t),
+       ssize_t (*cwrite)(void *, const char *, size_t),
        int (*cclose)(void *))
 {
 #ifdef HAVE_FUNOPEN
   if (!cookie)
     return 0;
-  return funopen(cookie, 
+  return funopen(cookie,
       (int (*)(void *, char *, int))(*mode == 'r' ? cread : NULL),             /* readfn */
       (int (*)(void *, const char *, int))(*mode == 'w' ? cwrite : NULL),      /* writefn */
       (fpos_t (*)(void *, fpos_t, int))NULL,                                   /* seekfn */
index ab96184..923e4f1 100644 (file)
@@ -294,11 +294,11 @@ testcase_str2dep(Pool *pool, char *s)
   int flags;
 
   if ((n = strchr(s, '|')) != 0)
-    {    
+    {
       id = testcase_str2dep(pool, n + 1);
-      *n = 0; 
+      *n = 0;
       id = pool_rel2id(pool, testcase_str2dep(pool, s), id, REL_OR, 1);
-      *n = '|'; 
+      *n = '|';
       return id;
     }
   while (*s == ' ' || *s == '\t')
@@ -338,7 +338,7 @@ testcase_str2dep(Pool *pool, char *s)
       s += 2;
     }
   for (;;s++)
-    {  
+    {
       if (*s == '<')
        flags |= REL_LT;
       else if (*s == '=')
@@ -402,8 +402,8 @@ testcase_solvid2str(Pool *pool, Id p)
   n = pool_id2str(pool, s->name);
   e = pool_id2str(pool, s->evr);
   a = pool_id2str(pool, s->arch);
-  str = pool_alloctmpspace(pool, strlen(n) + strlen(e) + strlen(a) + 3); 
-  sprintf(str, "%s-%s.%s", n, e, a); 
+  str = pool_alloctmpspace(pool, strlen(n) + strlen(e) + strlen(a) + 3);
+  sprintf(str, "%s-%s.%s", n, e, a);
   if (!s->repo)
     return pool_tmpappend(pool, str, "@", 0);
   if (s->repo->name)
@@ -1036,15 +1036,15 @@ finish_solvable(Pool *pool, Repodata *data, Solvable *s, char *filelist, int nfi
   if (nfilelist)
     {
       int l;
-      Id did; 
-      for (l = 0; l < nfilelist; l += strlen(filelist + l) + 1) 
+      Id did;
+      for (l = 0; l < nfilelist; l += strlen(filelist + l) + 1)
        {
          char *p = strrchr(filelist + l, '/');
-         if (!p) 
+         if (!p)
            continue;
-         *p++ = 0; 
+         *p++ = 0;
          did = repodata_str2dir(data, filelist + l, 1);
-         p[-1] = '/'; 
+         p[-1] = '/';
          if (!did)
            did = repodata_str2dir(data, "/", 1);
          repodata_add_dirstr(data, s - pool->solvables, SOLVABLE_FILELIST, did, p);
@@ -1777,7 +1777,7 @@ read_inline_file(FILE *fp, char **bufp, char **bufpp, int *buflp)
   char *result = solv_malloc(1024);
   char *rp = result;
   int resultl = 1024;
-  
+
   for (;;)
     {
       size_t rl;
@@ -1832,7 +1832,7 @@ read_file(FILE *fp)
   char *result = solv_malloc(1024);
   char *rp = result;
   int resultl = 1024;
-  
+
   for (;;)
     {
       size_t rl;