Re: [Grubby - PATCH 2/4] Add "const" specifier to function arguments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  {
      char *initrdVal, *end;
      int i;
@@ -3112,10 +3112,10 @@ static char * getInitrdVal(struct grubConfig * config,

  int addNewKernel(struct grubConfig * config, struct singleEntry * template,
  	         const char * prefix,
-		 char * newKernelPath, char * newKernelTitle,
-		 char * newKernelArgs, char * newKernelInitrd,
-		 char ** extraInitrds, int extraInitrdCount,
-                 char * newMBKernel, char * newMBKernelArgs) {
+		 const char * newKernelPath, const char * newKernelTitle,
+		 const char * newKernelArgs, const char * newKernelInitrd,
+		 const char ** extraInitrds, int extraInitrdCount,
+                 const char * newMBKernel, const char * newMBKernelArgs) {


I had to fix up the caller of this to cast extraInitrds to const char **,
or else we get a build failure, but otherwise this patch is applied to
master now.

Please do "make clean all test" before you send patches :)

--
        Peter

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux