fix return codes for makeSignature()
authorroot <devnull@localhost>
Thu, 22 Feb 1996 01:59:29 +0000 (01:59 +0000)
committerroot <devnull@localhost>
Thu, 22 Feb 1996 01:59:29 +0000 (01:59 +0000)
CVS patchset: 390
CVS date: 1996/02/22 01:59:29

lib/signature.c

index 15f7b78..1190941 100644 (file)
@@ -51,15 +51,13 @@ int readSignature(int fd, short sig_type, void **sig)
 int makeSignature(char *file, short sig_type, int ofd, char *passPhrase)
 {
     switch (sig_type) {
-    case RPMSIG_NONE:
-       /* Do nothing */
-       break;
     case RPMSIG_PGP262_1024:
-       makePGPSignature(file, ofd, passPhrase);
+        return makePGPSignature(file, ofd, passPhrase);
        break;
+    case RPMSIG_NONE:
     }
 
-    return 1;
+    return 0;
 }
 
 #if 0