]> code.citadel.org Git - citadel.git/commitdiff
* dynloader.c: fixed improperly done declaration and mallok()
authorArt Cancro <ajc@citadel.org>
Mon, 3 Dec 2001 17:02:50 +0000 (17:02 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 3 Dec 2001 17:02:50 +0000 (17:02 +0000)
citadel/ChangeLog
citadel/dynloader.c

index 3e31842791baea0e3184025d8d1448a9b4d55c56..f9a6229cef63031770a1b9aea076d52fe33f8fe2 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 580.90  2001/12/03 17:02:50  ajc
+ * dynloader.c: fixed improperly done declaration and mallok()
+
  Revision 580.89  2001/12/03 04:28:02  ajc
  * mime_parser.c: now uses built-in functions to decode base64 and
    quoted-printable attachments, instead of piping data to outboard programs.
@@ -2916,3 +2919,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
+
index 251ca2deec08de187cb04e81cf474990de84ec44..c58a5049fe05698a7a99765563217279a13424f1 100644 (file)
@@ -56,7 +56,10 @@ struct ProtoFunctionHook {
 
 void CtdlRegisterProtoHook(void (*handler) (char *), char *cmd, char *desc)
 {
-       struct ProtoFunctionHook *p = mallok(sizeof *p);
+       struct ProtoFunctionHook *p;
+
+       p = (struct ProtoFunctionHook *)
+               mallok(sizeof(struct ProtoFunctionHook));
 
        if (p == NULL) {
                fprintf(stderr, "can't malloc new ProtoFunctionHook\n");