Explorar el Código

dpkg-split: Make scandepot() static

Guillem Jover hace 12 años
padre
commit
9eca0910aa
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 0 1
      dpkg-split/dpkg-split.h
  2. 3 1
      dpkg-split/queue.c

+ 0 - 1
dpkg-split/dpkg-split.h

@@ -69,7 +69,6 @@ void rerreof(FILE *f, const char *fn) DPKG_ATTR_NORET;
 void print_info(const struct partinfo *pi);
 struct partinfo *read_info(FILE *partfile, const char *fn, struct partinfo *ir);
 
-void scandepot(void);
 void reassemble(struct partinfo **partlist, const char *outputfile);
 void mustgetpartinfo(const char *filename, struct partinfo *ri);
 void addtopartlist(struct partinfo**, struct partinfo*, struct partinfo *refi);

+ 3 - 1
dpkg-split/queue.c

@@ -83,7 +83,9 @@ decompose_filename(const char *filename, struct partqueue *pq)
   return true;
 }
 
-void scandepot(void) {
+static void
+scandepot(void)
+{
   DIR *depot;
   struct dirent *de;