Răsfoiți Sursa

qfile-utils: fix global variables declarations

Marek Marczykowski-Górecki 10 ani în urmă
părinte
comite
6eaa30a96a
3 a modificat fișierele cu 4 adăugiri și 6 ștergeri
  1. 0 3
      qubes-rpc/qfile-agent.c
  2. 2 1
      qubes-rpc/qfile-utils.c
  3. 2 2
      qubes-rpc/qfile-utils.h

+ 0 - 3
qubes-rpc/qfile-agent.c

@@ -1,8 +1,5 @@
-
 #include "qfile-utils.h"
 
-ignore_symlinks = 0;
-
 char *get_abs_path(char *cwd, char *pathname)
 {
 	char *ret;

+ 2 - 1
qubes-rpc/qfile-utils.c

@@ -1,7 +1,8 @@
 
 #include <qfile-utils.h>
 
-ignore_symlinks = 0;
+unsigned long crc32_sum;
+int ignore_symlinks = 0;
 
 void notify_progress(int size, int flag)
 {

+ 2 - 2
qubes-rpc/qfile-utils.h

@@ -22,8 +22,8 @@ enum {
 	PROGRESS_FLAG_DONE
 };
 
-unsigned long crc32_sum;
-int ignore_symlinks;
+extern unsigned long crc32_sum;
+extern int ignore_symlinks;
 
 void notify_progress(int size, int flag);
 void do_notify_progress(long long total, int flag);