Просмотр исходного кода

Move and replace showcopyright prototype from showcright.c to dpkg.h

Guillem Jover лет назад: 18
Родитель
Сommit
518b1f979c
3 измененных файлов с 6 добавлено и 2 удалено
  1. 5 0
      ChangeLog
  2. 1 1
      lib/dpkg.h
  3. 0 1
      lib/showcright.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-03-11  Guillem Jover  <guillem@debian.org>
+
+	* lib/showcright.c (showcopyright): Move function prototype to ...
+	* lib/dpkg.h: ... here, and replace existing one.
+
 2008-03-11  Guillem Jover  <guillem@debian.org>
 
 	* lib/Makefile.am (libdpkg_a_SOURCES): Add 'dpkg-def.h'.

+ 1 - 1
lib/dpkg.h

@@ -354,7 +354,7 @@ extern volatile int onerr_abort;
 /*** from showcright.c ***/
 
 struct cmdinfo;
-void showcopyright(const struct cmdinfo*, const char*);
+void showcopyright(const struct cmdinfo *c, const char *v) NONRETURNING;
 
 /*** from utils.c ***/
 

+ 0 - 1
lib/showcright.c

@@ -26,7 +26,6 @@
 
 #include <dpkg.h>
 
-void showcopyright(const struct cmdinfo *c, const char *v) NONRETURNING;
 void showcopyright(const struct cmdinfo *c, const char *v) {
   int fd;
   fd= open(COPYINGFILE,O_RDONLY);